Testing
Run and extend the main test suites in OpenSana.
Main Test Areas
- web and component tests
- Convex backend tests
- CLI tests
Common Commands
pnpm web:test:once
pnpm web:lint
cd apps/web && npx tsc --noEmit
pnpm cli:test:onceBackend Guidance
Convex changes should include or update backend tests.
Bug fixes should follow a failing-test-first workflow:
- write the test that reproduces the issue
- confirm it fails
- implement the fix
- confirm it passes
Source Material
The helper utilities for Convex tests are documented in apps/web/convex-testing/README.md.