-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
29 lines (26 loc) · 771 Bytes
/
jest.config.js
File metadata and controls
29 lines (26 loc) · 771 Bytes
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
/** @type {import('jest').Config} */
module.exports = {
testEnvironment: 'node',
// Timeout per test (default 5s is too short for integration tests)
testTimeout: 30000,
// Force exit after all tests complete — prevents hanging from leaked timers
// in tests like parallel-executor that use setTimeout-based retry backoff.
forceExit: true,
// Coverage configuration
collectCoverage: true,
coverageDirectory: 'coverage',
coverageReporters: ['text', 'lcov', 'html'],
coverageThreshold: {
global: {
branches: 50,
functions: 50,
lines: 50,
statements: 50
}
},
coveragePathIgnorePatterns: [
'/node_modules/',
'/tests/',
'/src/providers/' // External integrations, hard to test without live APIs
]
};