forked from drewburchfield/help-scout-mcp-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
42 lines (42 loc) · 991 Bytes
/
jest.config.js
File metadata and controls
42 lines (42 loc) · 991 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
export default {
preset: 'ts-jest/presets/default-esm',
extensionsToTreatAsEsm: ['.ts'],
testEnvironment: 'node',
roots: ['<rootDir>/src'],
testMatch: ['**/__tests__/**/*.test.ts'],
transform: {
'^.+\\.ts$': ['ts-jest', {
useESM: true,
tsconfig: {
target: 'ES2022',
module: 'ES2022',
lib: ['ES2022'],
moduleResolution: 'node',
allowSyntheticDefaultImports: true,
esModuleInterop: true,
skipLibCheck: true,
strict: true,
resolveJsonModule: true
},
}],
},
moduleNameMapper: {
'^(\\.{1,2}/.*)\\.js$': '$1',
},
collectCoverageFrom: [
'src/**/*.ts',
'!src/**/*.d.ts',
'!src/__tests__/**',
],
coverageDirectory: 'coverage',
coverageReporters: ['text', 'lcov', 'html'],
coverageThreshold: {
global: {
branches: 67,
functions: 62,
lines: 68,
statements: 67,
},
},
testTimeout: 10000, // 10 seconds for async operations
};