DEV Community

Discussion on: How I'm currently testing my GraphQL Resolvers & Mongoose Operations

Collapse
 
aks30498 profile image
aks30498

Why do I always hear from people that I should just mock the DB calls ? What would be the approach in that case ?

Collapse
 
devusman profile image
Usman Suleiman

Almost all tutorials mock the DB calls, but I don't see a single benefit of doing that. Might as well not test at all.