I want to test queries against my graphql implementation that is connected to a mongoose database using jest snapshot feature
I would like to follow this approach: http://ift.tt/2e3qluftests/queriesFromIndex.js
To use Jest snapshot to test the result of my queries.
One drawback of this approach is that I need to pre populate my mongo database with the same dummy data to always get the same results
what are the approaches to test a graphql server? including mutations and subscriptions
Aucun commentaire:
Enregistrer un commentaire