-
Notifications
You must be signed in to change notification settings - Fork 191
Expand file tree
/
Copy pathvitest.config.ts
More file actions
37 lines (36 loc) · 1.08 KB
/
vitest.config.ts
File metadata and controls
37 lines (36 loc) · 1.08 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
import { defineConfig } from "vitest/config";
import { fileURLToPath } from "node:url";
export default defineConfig({
test: {
setupFiles: ["tests/setup-env.ts", "tests/cli/runOracle/setup.ts"],
coverage: {
provider: "v8",
reporter: ["text", "lcov"],
all: true,
// Measure the real TypeScript sources (the repo doesn’t ship .js in src).
include: ["src/**/*.ts"],
// Exclude interactive/IPC entrypoints that aren’t practical to unit test.
exclude: [
"src/cli/tui/**",
"src/remote/**",
"src/mcp/**",
"src/browser/actions/**",
"src/browser/index.ts",
"src/browser/pageActions.ts",
"src/browser/chromeLifecycle.ts",
"src/browserMode.ts",
"src/oracle.ts",
"src/oracle/modelRunner.ts",
"src/oracle/stringifier.ts",
"src/oracle/types.ts",
"src/types/**",
],
},
},
resolve: {
alias: {
"@src": fileURLToPath(new URL("./src", import.meta.url)),
"@tests": fileURLToPath(new URL("./tests", import.meta.url)),
},
},
});