FerryDocs
ContributingTesting

Test the web client

Four commands in web/ run the unit tests, the type check, the lints and the build of the dashboard.

Edit on GitHub

npm test. Vitest runs the unit tests.

1 / 4

Run the checks

Terminal
cd web
npm test              # Vitest: SSE parser, change feed, log helpers, formatting, .env parsing, resource limits
npm run typecheck
npm run lint
npm run build

Where the tests are

The tests are next to the code: src/**/*.test.ts and src/**/*.test.tsx. Vitest finds these files.

ToolCheck
The unit tests
The
The lints

See Web client.

On this page