-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
21 lines (20 loc) · 810 Bytes
/
Copy pathvitest.config.ts
File metadata and controls
21 lines (20 loc) · 810 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
environment: "node",
include: ["src/**/*.test.ts", "test/**/*.test.ts"],
setupFiles: ["./test/setup.ts"],
coverage: {
provider: "v8",
reporter: ["text-summary", "text", "html"],
include: ["src/**/*.ts"],
// Exclude what v8 can't or shouldn't measure in-process:
// - test files themselves
// - recon/* are manual live scripts (excluded from the prod build)
// - index-*.ts are thin transport/bootstrap entrypoints
// NOTE: mod-scripts/ai-relay.js is loaded into a vm by the emulator, so v8
// does not instrument it — its breadth is tracked by test/relay-actions.
exclude: ["src/**/*.test.ts", "src/recon/**", "src/index-*.ts"],
},
},
});