Deep DivesWeb

Testing

Testing guide for the RawStack Web component.

Unit tests

Component and utility tests run with Vitest.

npm run test        # Watch mode
npm run test:run    # Single run with coverage

Configuration: vitest.config.ts.

E2E tests

Browser automation tests run with Playwright.

npm run test:e2e

Playwright tests live alongside the feature they cover. They require the API and web dev server to be running.

Coverage

npm run test:run -- --coverage

Coverage output is written to coverage/.