Shows how to write tests for Apollo applications (Node.js backend/ React frontend)
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
packages
.gitignore
README.md
lerna.json
package.json
yarn.lock

README.md

apollo-client-server-tests

Shows how to write tests for Apollo applications (Node.js backend/ React frontend)

Build

git clone git@github.com:mxro/ apollo-client-server-tests.git
cd apollo-client-server-tests
lerna bootstrap

Development Environment

To spin up a local development server with hot reload, run:

yarn build
yarn watch

This will perform hot reloads on the main server component server-main and React app client-main. To enable hot reloading on other components, also run the following in a different terminal window:

yarn watch-componentss

Run Tests

To run all tests, run:

yarn test

Deploy

To run production version

yarn build
PORT=8081 yarn serve

Based on