Testing Overview
Run end-to-end tests with Playwright and unit tests with Vitest.
This repo ships with Playwright for E2E tests and Vitest for unit tests.
Quick Start
# Terminal 1pnpm --filter web build:testpnpm --filter web start:test# Terminal 2pnpm --filter web-e2e test:slow# Unit testspnpm test:unitstart:test is a blocking server process, so run it in a separate terminal.
Environment Setup
E2E tests require:
- PostgreSQL running
apps/e2e/.env- seeded data via global setup
Common Pitfalls
- forgetting to start the app before E2E runs
- stale production test build
- port 3000 conflicts