We're incrementally moving integration tests out of Meteor+Mocha and into pure Jest tests. Jest integration test files end in
.test.js and are all located in the
watchman if you are on Mac OSX and you'd like to run
--watchAll on tests (such as the
npm run test:integration:watch command).
brew install watchman
To run tests:
npm run test:integration
Run tests in watch mode
To run tests and rerun as you make changes to test files:
npm run test:integration:watch
Run tests within a Docker container
You can use Docker Compose to run a local development container and run tests within it. This gives a more accurate picture of how production code running in a container will behave.
docker-compose run --rm devserver npm run test:integration
(This will also work with
:watch suffix for watch mode.)