Testing - MotivationalModelling/mm-local-editor GitHub Wiki

Testing

Run these commands from the project root after completing Installation.

Unit and component tests

npm test

Lint and build checks

npm run lint
npm run build

End-to-end tests

Start the application in one terminal:

npm run dev

Run Cypress in a second terminal:

npx cypress run

Cypress uses http://localhost:5173/mm-local-editor/ as its base URL.

Run the unit tests, lint check, build, and end-to-end tests before opening a release pull request.