Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 912 Bytes

TESTING.md

File metadata and controls

37 lines (25 loc) · 912 Bytes

Tests

The Ocean Best Practices application is tested using Jest and Docker. Before tests can be run you need to make sure dependencies are installed:

npm install

You will need to manually install Docker if it's not already available to you. The [docker-compose.yml][./docker-compose.yml] describes the services that are used to support local testing:

After installing dependencies you can start the Docker container:

docker-compose up

Once the Docker container is up you can run the tests:

npm run test

If you need to you can run a single test:

npm run test -- PATH_TO_TEST_FILE

If you're finished running tests you can stop the Docker container:

docker-compose down