Deep DivesAdmin

Testing

Testing guide for the RawStack Admin component.

Unit tests

Component and utility tests run with Vitest.

npm run test         # Watch mode
npm run test:run     # Single run
npm run test:ui      # Vitest UI (browser-based test runner)

E2E tests

Playwright drives a real browser against the running Vite dev server.

npm run test:e2e

Ensure the Vite dev server and API are both running before executing E2E tests.

Coverage

npm run test:run -- --coverage