|
1 | 1 | import { defineConfig } from 'vitest/config'; |
2 | 2 |
|
3 | 3 | export default defineConfig({ |
4 | | - test: { |
5 | | - globals: true, |
6 | | - environment: 'node', |
7 | | - include: ['tst/**/*.test.ts'], |
8 | | - exclude: ['**/node_modules/**', '**/out/**'], |
9 | | - setupFiles: ['tst/setup.ts'], |
10 | | - coverage: { |
11 | | - provider: 'v8', |
12 | | - reporter: ['cobertura', 'html', 'text'], |
13 | | - include: ['src/**/*.{js,ts}'], |
14 | | - enabled: true, |
| 4 | + test: { |
| 5 | + globals: true, |
| 6 | + environment: 'node', |
| 7 | + include: ['tst/**/*.test.ts'], |
| 8 | + exclude: ['**/node_modules/**', '**/out/**'], |
| 9 | + setupFiles: ['tst/setup.ts'], |
| 10 | + coverage: { |
| 11 | + provider: 'v8', |
| 12 | + reporter: ['cobertura', 'html', 'text'], |
| 13 | + include: ['src/**/*.{js,ts}'], |
| 14 | + enabled: true, |
| 15 | + thresholds: { |
| 16 | + statements: 85, |
| 17 | + branches: 85, |
| 18 | + functions: 85, |
| 19 | + lines: 85, |
| 20 | + }, |
| 21 | + exclude: [ |
| 22 | + 'src/ai/**', |
| 23 | + 'src/services/cfnLint/pyodide-worker.ts', |
| 24 | + 'src/telemetry/OTELInstrumentation.ts', |
| 25 | + 'src/telemetry/TelemetryService.ts', |
| 26 | + 'src/services/guard/assets/**', |
| 27 | + ], |
| 28 | + }, |
| 29 | + pool: 'forks', // Run tests in separate processes for better isolation |
| 30 | + isolate: true, // Ensure each test file runs in isolation |
| 31 | + testTimeout: 30000, // Increase timeout for longer-running tests |
15 | 32 | }, |
16 | | - pool: 'forks', // Run tests in separate processes for better isolation |
17 | | - isolate: true, // Ensure each test file runs in isolation |
18 | | - testTimeout: 30000, // Increase timeout for longer-running tests |
19 | | - }, |
20 | 33 | }); |
0 commit comments