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 installYou 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 upOnce the Docker container is up you can run the tests:
npm run testIf you need to you can run a single test:
npm run test -- PATH_TO_TEST_FILEIf you're finished running tests you can stop the Docker container:
docker-compose down