-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathvitest.config.ts
More file actions
22 lines (21 loc) · 688 Bytes
/
Copy pathvitest.config.ts
File metadata and controls
22 lines (21 loc) · 688 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
include: ["tests/**/*.test.ts"],
// Heavy survival-fit tests (cost-optimal restart search over a Weibull mixture) run well
// under 2s locally but cross the default 5s budget under V8 coverage on slower CI runners.
// A generous ceiling keeps coverage runs deterministic while still catching a true hang.
testTimeout: 30000,
coverage: {
provider: "v8",
include: ["src/**/*.ts"],
exclude: ["src/cli/index.ts", "src/types.ts"],
thresholds: {
statements: 80,
branches: 80,
functions: 80,
lines: 80,
},
},
},
});