20 lines
947 B
TypeScript
20 lines
947 B
TypeScript
import { defineConfig } from "vitest/config";
|
|
|
|
export default defineConfig({
|
|
resolve: { tsconfigPaths: true },
|
|
test: {
|
|
environment: "node",
|
|
globals: false,
|
|
// Unit tests (no DB) run by default via `npm test`. Integration tests
|
|
// (real Postgres required) are named `*.integration.test.ts` and only
|
|
// run via `npm run test:integration` — see docs/phase-3-summary.md.
|
|
// e2e/ is Playwright's own suite (`npm run test:e2e`), not Vitest's.
|
|
// "**/node_modules/**" (not "node_modules/**") is deliberate — the
|
|
// latter only matches a top-level node_modules, not a nested one like
|
|
// manager/node_modules, whose own dependencies (e.g. zod) ship test
|
|
// files that would otherwise get picked up and fail for missing
|
|
// dev-only deps that were never meant to run here at all.
|
|
exclude: ["**/node_modules/**", ".next/**", "templates/**", "e2e/**", "manager/**", "**/*.integration.test.ts"],
|
|
},
|
|
});
|