-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathvitest.config.ts
More file actions
66 lines (65 loc) · 1.45 KB
/
vitest.config.ts
File metadata and controls
66 lines (65 loc) · 1.45 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/// <reference types="vitest" />
import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
globals: true,
environment: "node",
setupFiles: ["./vitest.setup.ts"],
include: ["ts/**/*.spec.ts"],
exclude: [
"ts/**/*.bun.spec.ts",
"ts/parseCliArgs.spec.ts",
"ts/tests/mock-claude-cli.spec.ts",
"ts/tests/rust-cwd.spec.ts",
"node_modules/**/*",
],
fileParallelism: false,
pool: "forks",
forks: {
singleFork: true,
isolate: true,
},
sequence: {
concurrent: false,
hooks: "list",
},
testTimeout: 30000,
hookTimeout: 30000,
isolate: true,
coverage: {
provider: "v8",
enabled: true,
include: ["ts/**/*.ts"],
exclude: [
"ts/**/*.spec.ts",
"ts/**/*.test.ts",
"ts/**/*.bun.spec.ts",
"ts/index.ts",
"ts/cli.ts",
"ts/postbuild.ts",
"ts/pty.ts",
"ts/pty-fix.ts",
"ts/installEnv.ts",
"ts/parseCliArgs.ts",
"ts/rustBinary.ts",
"ts/versionChecker.ts",
"ts/agentRegistry.ts",
"ts/SUPPORTED_CLIS.ts",
"ts/webhookNotifier.ts",
"ts/runningLock.ts",
"ts/beta/**",
"ts/core/**",
"ts/resume/**",
],
thresholds: {
lines: 90,
functions: 90,
branches: 90,
statements: 90,
},
},
},
define: {
"import.meta.vitest": false,
},
});