-
Notifications
You must be signed in to change notification settings - Fork 144
Expand file tree
/
Copy pathvitest.config.ts
More file actions
31 lines (29 loc) · 943 Bytes
/
Copy pathvitest.config.ts
File metadata and controls
31 lines (29 loc) · 943 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
import { defineConfig } from 'vitest/config';
import { config } from 'dotenv';
const dotenvResult = config();
export default defineConfig({
test: {
globals: true,
include: ['tests/**/*.test.ts'],
testTimeout: 30000,
env: dotenvResult.parsed,
coverage: {
provider: 'v8',
all: true,
include: ['src/**/*.ts'],
exclude: ['src/**/*.d.ts', 'src/evals/**'],
reporter: ['text-summary', 'json-summary', 'html'],
// Baseline ratchet toward a 70% target. The floor starts at the current
// watermark so `main` stays green; `autoUpdate` raises these numbers as
// coverage improves (never lowers them), so CI fails any PR that drops
// coverage below the best we've ever achieved. Goal: climb all four to 70.
thresholds: {
autoUpdate: true,
lines: 23.45,
statements: 22.75,
functions: 35.31,
branches: 22,
},
},
},
});