forked from FlowwStar/FlowStar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
33 lines (32 loc) · 907 Bytes
/
Copy pathvitest.config.ts
File metadata and controls
33 lines (32 loc) · 907 Bytes
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
import { defineConfig } from "vitest/config";
import path from "path";
export default defineConfig({
test: {
environment: "jsdom",
setupFiles: ["./vitest.setup.ts"],
globals: true,
exclude: ["e2e/**", "node_modules/**"],
include: ["__tests__/**/*.{test,spec}.{ts,tsx}"],
coverage: {
provider: "v8",
enabled: true,
reporter: ["text", "lcov"],
include: ["hooks/**", "lib/**", "components/**", "utils/**"],
exclude: ["**/*.d.ts", "**/index.ts"],
// Baseline from current coverage (`npm run test:coverage` on 2026-07-18).
// Ratchet these up over time as more tests are added; never lower them
// to make a failing PR pass.
thresholds: {
statements: 13,
branches: 60,
functions: 40,
lines: 13,
},
},
},
resolve: {
alias: {
"@": path.resolve(__dirname, "."),
},
},
});