-
-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathjest.config.js
More file actions
40 lines (40 loc) · 917 Bytes
/
jest.config.js
File metadata and controls
40 lines (40 loc) · 917 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
/** @type {import('jest').Config} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
rootDir: '.',
collectCoverageFrom: [
'src/**/*.{ts,tsx}',
'!src/**/*.d.ts',
'!src/monitor/node_modules/**',
'!src/monitor/src/**/*.test.ts',
'!**/node_modules/**'
],
coverageDirectory: 'coverage',
coverageReporters: ['text', 'lcov', 'html'],
coverageThreshold: {
global: {
branches: 80,
functions: 80,
lines: 80,
statements: 80
}
},
testMatch: [
'<rootDir>/tests/**/*.test.{ts,tsx}',
'<rootDir>/src/**/__tests__/**/*.{ts,tsx}',
'<rootDir>/src/**/*.{test,spec}.{ts,tsx}'
],
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1',
'^@tests/(.*)$': '<rootDir>/tests/$1'
},
testTimeout: 30000,
maxWorkers: '50%',
// AI Model Testing Configuration
globals: {
'ts-jest': {
tsconfig: 'tsconfig.json'
}
}
};