-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
63 lines (61 loc) · 1.68 KB
/
vitest.config.ts
File metadata and controls
63 lines (61 loc) · 1.68 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
// b_path:: vitest.config.ts
/// <reference types="vitest" />
import path from "node:path";
import { defineConfig } from "vitest/config";
export default defineConfig({
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
test: {
globals: true,
environment: "node",
include: [
"packages/*/src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}",
"packages/*/test/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}",
],
exclude: ["node_modules", "dist", ".idea", ".git", ".cache", "TMP"],
coverage: {
provider: "v8",
reporter: ["text", "json", "html", "lcov"],
exclude: [
"coverage/**",
"dist/**",
"TMP/**",
"TMP/**/*.*",
"NOTES/**",
"benchmark/**",
"scripts/**",
"examples/**",
"docs/**",
"docs.internal/**",
"docs.llm/**",
"packages/*/test{,s}/**",
"**/*.d.ts",
"cypress/**",
"test{,s}/**",
"test{,-*}.{js,cjs,mjs,ts,tsx,jsx}",
"**/*{.,-}test.{js,cjs,mjs,ts,tsx,jsx}",
"**/*{.,-}spec.{js,cjs,mjs,ts,tsx,jsx}",
"**/__test__/**",
"**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build}.config.*",
"**/.{eslint,mocha,prettier}rc.{js,cjs,yml}",
// Index files (barrel exports only)
"**/index.ts",
// Core infrastructure (tested via usage)
"src/core/result.ts", // Result type utilities
"src/core/units/**", // Simple type exports
],
thresholds: {
lines: 89,
functions: 90,
branches: 71,
statements: 89,
},
},
},
esbuild: {
target: "node18",
},
});