-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathvitest.config.ts
More file actions
56 lines (51 loc) · 1.54 KB
/
vitest.config.ts
File metadata and controls
56 lines (51 loc) · 1.54 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
/*
* ═══════════════════════════════════════════════════════════════
* universal-crypto-mcp | nich.xbt
* ID: n1ch-0las-4e49-4348-786274000000
* ═══════════════════════════════════════════════════════════════
*/
import { defineConfig } from "vitest/config"
import { fileURLToPath } from "url"
import { dirname, resolve } from "path"
const __filename = fileURLToPath(import.meta.url)
const __dirname = dirname(__filename)
export default defineConfig({
test: {
globals: true,
environment: "node",
include: ["src/**/*.test.ts", "tests/**/*.test.ts"],
exclude: ["node_modules", "dist", "build"],
setupFiles: ["./tests/setup.ts"],
coverage: {
provider: "v8",
reporter: ["text", "json", "html", "lcov"],
reportsDirectory: "./coverage",
include: ["src/**/*.ts"],
exclude: [
"src/**/*.test.ts",
"src/**/*.spec.ts",
"src/**/index.ts",
"node_modules"
],
thresholds: {
lines: 10,
functions: 10,
branches: 5,
statements: 10
}
},
testTimeout: 30000,
hookTimeout: 30000,
reporters: ["default"],
pool: "forks",
forks: {
singleFork: true
}
},
resolve: {
alias: {
"@": resolve(__dirname, "./src")
}
}
})
/* EOF - nichxbt | 0.14.9.3 */