Hi everyone, I'm working on unit test for my GraphQL server. Should I test the queries and mutations via HTTP endpoint or just test their resolvers? Its kind of confusing with a newbie ^^
j
jlengstorf
12/29/2017, 3:45 PM
I'd recommend writing unit tests for the resolvers + an integration test where you mock out the HTTP response and send queries to your server.
👍 1
d
dunghoangvan
12/29/2017, 4:10 PM
Thank you, i'm working on the resolvers, will start the integration test then ^^