-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvitest.config.ts
More file actions
27 lines (26 loc) · 749 Bytes
/
Copy pathvitest.config.ts
File metadata and controls
27 lines (26 loc) · 749 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/**
* Vitest configuration for HealthCal Pro.
* Runs unit + integration tests for lib utilities and API-route logic.
* Does NOT require a running Next.js server — pure Node/ESM environment.
*/
import { defineConfig } from "vitest/config";
import path from "path";
export default defineConfig({
test: {
environment: "node",
globals: true,
/** Isolate each test file so module-level singletons (prisma, redis) don't bleed. */
isolate: true,
coverage: {
provider: "v8",
reporter: ["text", "html"],
include: ["src/lib/**", "src/app/api/**"],
exclude: ["src/lib/supabase*", "src/lib/postgresClient*"],
},
},
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
});