Test
Runs the test suite for TenantFlow.
Usage
/test— run all tests/test --unit— unit tests only (faster)/test --e2e— end-to-end tests only
Workflow
- Install/verify dependencies —
npm installif package-lock has changed - Unit + integration tests —
npm run test - E2E tests —
npx playwright test(requires dev server running or staging URL) - Report — summarize pass/fail counts; if failures, show the failing test names and errors
- If failures: suggest likely causes and fixes before asking user what to do
Project specifics
- Test framework: Vitest (unit/integration) + Playwright (e2e)
- Test directory:
src/**/*.test.ts+e2e/ - Coverage threshold: 80%
- Critical tests: tenant isolation queries, Stripe webhook handlers, invoice generation