-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.cjs
More file actions
44 lines (44 loc) · 908 Bytes
/
jest.config.cjs
File metadata and controls
44 lines (44 loc) · 908 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
module.exports = {
testEnvironment: 'node',
moduleNameMapper: {
'^(\\.{1,2}/.*)\\.js$': '$1'
},
transform: {},
transformIgnorePatterns: [
'node_modules/(?!(@modelcontextprotocol))'
],
collectCoverageFrom: [
'src/**/*.js',
'index.js',
'!src/tools/index.js',
'!**/node_modules/**'
],
coverageDirectory: 'coverage',
coverageReporters: ['text', 'lcov', 'html'],
testMatch: [
'**/tests/**/*.test.js',
'**/tests/**/*.spec.js'
],
setupFilesAfterEnv: ['<rootDir>/tests/setup.js'],
testTimeout: 30000,
verbose: true,
collectCoverage: false,
coverageThreshold: {
global: {
branches: 75,
functions: 80,
lines: 85,
statements: 85
}
},
moduleFileExtensions: ['js', 'json'],
maxWorkers: '50%',
clearMocks: true,
restoreMocks: true,
resetMocks: true,
globals: {
'ts-jest': {
useESM: true
}
}
};