Testing with Playwright and Vitest
Run E2E and unit tests with the scripts currently shipped in the repo.
The repo uses:
- Playwright for E2E tests in
apps/e2e - Vitest for package-level unit tests
Quick Start
Run unit tests:
pnpm test:unitRun E2E tests against a built web app:
pnpm --filter web build:testPLAYWRIGHT_SERVER_COMMAND='pnpm --filter web start:test' pnpm --filter web-e2e test:slowIf you prefer to start the app yourself in another terminal:
pnpm --filter web start:testpnpm --filter web-e2e test:slowWhat Is Covered
- auth flows
- invitations and members flows
- admin flows
- settings flows
- package-level service and utility tests
Environment Setup
E2E tests expect:
- PostgreSQL running
apps/e2e/.envconfigured- Mailpit available for email-based flows
The E2E suite seeds the database in Playwright global setup.