Mocking your server with just one line of code
Jonas Helfer

This looks great, however, how do you actually use this in an apollo application for testing?

I’m trying to setup integration testing and I want to mock the server to avoid doing network calls in tests, but I can’t find any way on how to use a mocked server like this in the networkInterface (I’m using react-apollo), any pointers on this?

Like what you read? Give Carlos Martinez a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.