ContributingTesting
Test the web client
Four commands in web/ run the unit tests, the type check, the lints and the build of the dashboard.
npm test. Vitest runs the unit tests.
1 / 4
Run the checks
cd web
npm test # Vitest: SSE parser, change feed, log helpers, formatting, .env parsing, resource limits
npm run typecheck
npm run lint
npm run buildWhere the tests are
The tests are next to the code: src/**/*.test.ts and src/**/*.test.tsx. Vitest finds these files.
| Tool | Check |
|---|---|
| Vitest | The unit tests |
| TypeScript | The type check |
| ESLint | The lints |
See Web client.