Skip to content

Didericis/testing-apollo-containers-example

Repository files navigation

testing-apollo-containers-example

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.

Installation

git clone https://github.com/Didericis/testing-apollo-containers-example.git
cd testing-apollo-containers-example && npm install

Start

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

Tests

npm run test:client        # Runs the tests once
npm run test:client:watch  # Runs the tests in watch mode