-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjest.config.js
More file actions
50 lines (44 loc) · 1.13 KB
/
Copy pathjest.config.js
File metadata and controls
50 lines (44 loc) · 1.13 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
50
/**
* Jest Configuration for GrooveAgent
* ES Module compatible configuration
*
* Story 7.3.5: Added coverage thresholds for Epic 7 Foundation Testing
*/
export default {
testEnvironment: 'node',
transform: {},
moduleFileExtensions: ['js', 'mjs'],
testMatch: ['**/tests/**/*.test.js'],
verbose: true,
// Coverage configuration
collectCoverage: true,
coverageDirectory: 'tests/coverage',
coverageReporters: ['text', 'lcov', 'html', 'text-summary'],
// Coverage thresholds (Story 7.3.5: Epic 7 Foundation Testing)
coverageThreshold: {
global: {
branches: 85,
functions: 85,
lines: 85,
statements: 85
},
// Critical components require higher coverage
'./src/node/commands/workflow-dispatcher.js': {
branches: 90,
functions: 90,
lines: 90,
statements: 90
}
},
// Files to collect coverage from
collectCoverageFrom: [
'src/node/**/*.js',
'!src/node/**/*.test.js',
'!src/node/index.js', // Entry point, tested via integration
'!**/node_modules/**'
],
// Setup files
setupFilesAfterEnv: [],
// Test timeout
testTimeout: 10000
};