This repo is an example of how to test projects using react apollo with apollo client 2.0. More details can be found in this blog post.
git clone https://github.com/Didericis/testing-apollo-containers-example.git
cd testing-apollo-containers-example && npm install
npm run start # Starts the app on localhost:3000, rebuilds client on changes
npm run start:watch # Starts the app on localhost:3000, rebuilds both client and server on changes
npm run test:client # Runs the tests once
npm run test:client:watch # Runs the tests in watch mode