Example for testing apollo containers with apollo 2.0
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
client
config
output
scripts
server
templates
.gitignore
README.md
karma.conf.js
package-lock.json
package.json
webpack.config.js

README.md

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