-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathvitest.config.ts
More file actions
41 lines (40 loc) · 1.11 KB
/
Copy pathvitest.config.ts
File metadata and controls
41 lines (40 loc) · 1.11 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
import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
include: ["tests/unit/**/*.test.ts"],
environment: "node",
globals: false,
testTimeout: 10_000,
coverage: {
provider: "v8",
reporter: ["text", "json-summary", "json"],
reportsDirectory: "./coverage",
include: ["electron/**/*.ts", "shared/**/*.ts", "src/**/*.ts"],
exclude: [
"**/*.d.ts",
"**/*.test.ts",
"**/*.bench.ts",
"src/locales/**",
"src/lib/i18n.tsx",
"src/types/**",
"shared/ports.ts",
"shared/settings-keys.ts",
"electron/main/index.ts",
// Main-process lifecycle wiring requires a real Electron app; new path logic is covered separately.
"electron/main/app-main.ts",
"electron/main/engines/identity-prompt.ts",
"electron/preload/**",
"src/components/file-icons/**",
],
thresholds: {
lines: 50,
functions: 50,
branches: 50,
statements: 50,
},
},
benchmark: {
include: ["tests/benchmark/**/*.bench.ts"],
},
},
});