Running Tests
pnpm test # vitest run, repo-wide unit/integration tests
pnpm test:watch # vitest, watch mode
pnpm test:e2e # Playwright suite in apps/e2e
Unit tests are co-located as *.test.ts next to source and picked up automatically by
vitest.config.ts's glob (apps/*/src/**/*.test.ts, packages/*/src/**/*.test.ts) — no
per-package vitest config needed. DATABASE_URL defaults to a safe local placeholder if unset;
never override it with a production connection string when running tests.
E2E tests need the local stack running first (pnpm dev) — see
Quick Start.
pnpm --filter apps-e2e test:headed # run with a visible browser
pnpm --filter apps-e2e test:ui # Playwright's UI mode