-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathvitest.config.ts
More file actions
33 lines (32 loc) · 1.1 KB
/
vitest.config.ts
File metadata and controls
33 lines (32 loc) · 1.1 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
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
globals: true,
environment: 'node',
include: ['tst/**/*.test.ts'],
exclude: ['**/node_modules/**', '**/out/**'],
setupFiles: ['tst/setup.ts'],
coverage: {
provider: 'v8',
reporter: ['cobertura', 'html', 'text'],
include: ['src/**/*.{js,ts}'],
enabled: true,
thresholds: {
statements: 87,
branches: 80,
functions: 88,
lines: 87,
},
exclude: [
'src/ai/**',
'src/services/cfnLint/pyodide-worker.ts',
'src/telemetry/OTELInstrumentation.ts',
'src/telemetry/TelemetryService.ts',
'src/services/guard/assets/**',
],
},
pool: 'forks', // Run tests in separate processes for better isolation
isolate: true, // Ensure each test file runs in isolation
testTimeout: 30000, // Increase timeout for longer-running tests
},
});