forked from ruvnet/agentic-flow
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.medical.cjs
More file actions
49 lines (49 loc) · 1.05 KB
/
jest.config.medical.cjs
File metadata and controls
49 lines (49 loc) · 1.05 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
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
roots: ['<rootDir>/tests', '<rootDir>/src'],
testMatch: [
'**/tests/**/*.test.ts',
'**/tests/**/*.spec.ts'
],
transform: {
'^.+\\.ts$': ['ts-jest', {
tsconfig: {
esModuleInterop: true,
allowSyntheticDefaultImports: true,
moduleResolution: 'node',
target: 'ES2020',
module: 'commonjs',
lib: ['ES2020'],
}
}],
},
collectCoverageFrom: [
'src/**/*.{ts,js}',
'!src/**/*.d.ts',
'!src/**/__tests__/**',
'!src/**/index.ts',
'!src/App.tsx',
'!src/main.tsx',
'!src/components/**',
'!src/pages/**',
'!src/transport/**',
],
coverageThreshold: {
global: {
branches: 90,
functions: 90,
lines: 90,
statements: 90,
},
},
coverageDirectory: 'coverage-medical',
coverageReporters: ['text', 'lcov', 'html', 'json-summary'],
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1',
},
testTimeout: 10000,
verbose: true,
bail: false,
maxWorkers: '50%',
};