Files
NextChair/vitest.config.mts
Stefan Lazic a0d39026c0
CI / ci (push) Canceled after 0s
Management UI
Attempt 2 of a management ui.
2026-09-05 13:39:55 +01:00

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"],
},
});