cannin / ihop-reach

A web application to access biological data extracted from biomedical literature.
https://reach.nrnb-docker.ucsd.edu
GNU Lesser General Public License v3.0
4 stars 4 forks source link

Test GraphQL API with Jest #37

Open cannin opened 5 years ago

cannin commented 5 years ago

Test the API with Jest. Here is an article on the topic:

https://onlineornot.com/blog/onlineornot-graphql-snapshot-testing

RohitChattopadhyay commented 5 years ago

For testing, Mock MongoDB is to be used or the complete connection in localhost?

RohitChattopadhyay commented 5 years ago

Tests are written in file https://github.com/RohitChattopadhyay/ihop-reach/tree/docker-api/src/tests