Testing¶
We use the Cypress JS testing framework to run E2E tests for this application.
Useful commands¶
From the /test folder in this solution, you can run the following commands to simplify testing the application.
npm run hosthosts a version of OC running in production mode (faster).npm run buildbuilds the application.npm run testhosts the site then runs cypress tests.npm run cypressopens cypress dashboard.npm run cypress:runruns the cypress tests in the console. Assumes a pre-running site instance.
Last update: April 22, 2021