-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.js
More file actions
44 lines (43 loc) · 1.14 KB
/
vitest.config.js
File metadata and controls
44 lines (43 loc) · 1.14 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
import { defineConfig } from 'vitest/config';
export default defineConfig({
benchmark: {
include: ['src/tests/performance/benchmarks/**/*.bench.js'],
setupFiles: ['./src/tests/vitest.setup.js'],
},
test: {
globals: true,
environment: 'node',
setupFiles: ['./src/tests/vitest.setup.js'],
include: ['src/tests/unit/**/*.test.js', 'src/tests/integration/**/*.test.js'],
coverage: {
provider: 'v8',
reporter: ['text', 'lcov', 'html'],
reportsDirectory: './coverage',
include: [
'src/indicators/**/*.ts',
'src/analytics/**/*.ts',
'src/core/**/*.ts',
'src/ml/**/*.ts',
'src/alerts/**/*.ts',
'src/reports/**/*.ts',
'src/security/**/*.ts',
'src/middleware/**/*.ts',
'src/storage/**/*.ts',
'src/portfolio/**/*.ts',
'src/allocation/**/*.ts',
'src/config/**/*.ts',
],
// Phase 2.1.2 thresholds (Feb 2026)
thresholds: {
statements: 80,
branches: 60,
functions: 85,
lines: 80,
},
},
testTimeout: 30000,
sequence: {
shuffle: false,
},
},
});