Open cannin opened 5 years ago
Test the API with Jest. Here is an article on the topic:
https://onlineornot.com/blog/onlineornot-graphql-snapshot-testing
For testing, Mock MongoDB is to be used or the complete connection in localhost?
Tests are written in file https://github.com/RohitChattopadhyay/ihop-reach/tree/docker-api/src/tests
Test the API with Jest. Here is an article on the topic:
https://onlineornot.com/blog/onlineornot-graphql-snapshot-testing