-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
29 lines (28 loc) · 635 Bytes
/
Copy pathjest.config.js
File metadata and controls
29 lines (28 loc) · 635 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
/**
* Jest Configuration
*/
module.exports = {
testEnvironment: 'node',
testMatch: ['**/tests/**/*.test.js'],
collectCoverageFrom: [
'src/**/*.js',
'!src/index.js' // Exclude main entry point from coverage
],
coverageDirectory: 'coverage',
coverageReporters: ['text', 'lcov', 'html'],
coverageThreshold: {
global: {
branches: 50,
functions: 50,
lines: 50,
statements: 50
}
},
setupFilesAfterEnv: ['./tests/setup.js'],
testTimeout: 10000,
verbose: true,
// Transform ESM packages to CommonJS for Jest
transformIgnorePatterns: [
'node_modules/(?!(uuid)/)'
]
};