-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathvitest.config.ts
More file actions
57 lines (47 loc) · 1.41 KB
/
vitest.config.ts
File metadata and controls
57 lines (47 loc) · 1.41 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
// ============================================================================
// Stylescape | Vitest Configuration
// ============================================================================
import path from "path";
import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
// Test environment
environment: "jsdom",
// Test file patterns
include: ["tst/**/*.{test,spec}.{ts,tsx}"],
exclude: ["node_modules", "dist"],
// Setup files
setupFiles: ["./tst/setup.ts"],
// Coverage configuration
coverage: {
provider: "v8",
reporter: ["text", "html", "lcov"],
reportsDirectory: "./coverage",
include: ["src/ts/**/*.ts"],
exclude: [
"src/ts/**/*.d.ts",
"src/ts/**/index.ts",
"node_modules",
],
thresholds: {
lines: 60,
functions: 60,
branches: 50,
statements: 60,
},
},
// Globals
globals: true,
// Reporter
reporters: ["verbose"],
// Timeout for tests
testTimeout: 10000,
// Watch mode exclusions
watchExclude: ["node_modules", "dist"],
},
resolve: {
alias: {
"@": path.resolve(__dirname, "./src/ts"),
},
},
});