-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvitest.config.js
More file actions
50 lines (48 loc) · 1.12 KB
/
vitest.config.js
File metadata and controls
50 lines (48 loc) · 1.12 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
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
globals: true,
environment: 'node',
include: ['tests/**/*.test.js'],
exclude: ['tests/llm.test.js', 'node_modules/**'],
// Run tests in same thread to allow process.cwd mocking
pool: 'forks',
poolOptions: {
forks: {
singleFork: true
}
},
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html', 'json-summary', 'lcov'],
reportsDirectory: './coverage',
include: [
'scripts/**/*.js',
'lib/**/*.js'
],
exclude: [
'node_modules/',
'tests/',
'.cache/',
'dist/',
'**/*.config.js',
'scripts/retrigger-full-catalog.sh'
],
// Thresholds for quality gates (lowered for initial setup)
thresholds: {
lines: 25,
functions: 50,
branches: 70,
statements: 25
}
},
testTimeout: 30000,
hookTimeout: 15000,
// Retry flaky tests once
retry: 1,
// Sequence tests to avoid race conditions
sequence: {
shuffle: false
}
}
});