Testing
Unit tests
Unit tests are used for testing React components and utilities. They are written in .test.ts
or .test.tsx
files located next to the code they test.
Run tests using yarn test
command.
Unit tests use written using:
- Vitest as the test runner
- @testing-library/react for testing React components
- @testing-library/user-event for simulating user interactions
Integration tests
Integration tests are implemented using Cypress framework.
- Run all tests headless (CI mode):
yarn ci:test
- Open Cypress GUI (requires dev server running):
yarn cypress open
Integration tests are located in:
cypress/e2e/
- Test specificationscypress/fixtures/
- Test datacypress/support/
- Custom commands and utilities