- Vitest: unit tests for packages, components, and app logic (jsdom env, @testing-library/react, co-located test files) - Playwright: E2E browser tests per app (journal.test.ts, planner.test.ts), auto-starts dev servers, scoped via testMatch - Sample unit test for types package - Smoke E2E tests for both apps - Updated CLAUDE.md with test commands and strategy Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
11 lines
293 B
TypeScript
11 lines
293 B
TypeScript
import { defineConfig } from "vitest/config";
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
globals: true,
|
|
environment: "jsdom",
|
|
include: ["packages/*/src/**/*.test.{ts,tsx}", "apps/*/app/**/*.test.{ts,tsx}"],
|
|
exclude: ["**/e2e/**"],
|
|
setupFiles: ["./vitest.setup.ts"],
|
|
},
|
|
});
|