forked from Talenttrust/Talenttrust-Backend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
45 lines (45 loc) · 1.15 KB
/
Copy pathjest.config.js
File metadata and controls
45 lines (45 loc) · 1.15 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
/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
setupFiles: ['<rootDir>/src/test-setup.ts'],
...(process.env.CI
? {}
: {
// Skip BullMQ when no Redis; long load tests (optional locally). CI runs the full set with Redis.
testPathIgnorePatterns: [
'/node_modules/',
'queue-manager.test.ts',
'api/jobs.test',
'tests/load',
'tests/stress',
],
}),
transform: {
'^.+\\.ts$': 'ts-jest',
},
testEnvironment: 'node',
roots: ['<rootDir>/src'],
testMatch: ['**/*.test.ts'],
collectCoverageFrom: [
'src/**/*.ts',
'!src/**/*.d.ts',
'!src/**/*.test.ts',
'!src/**/__tests__/**',
'!src/index.ts', // entry point — not unit-testable (binds port)
'!src/tests/load/**',
'!src/tests/stress/**',
'!src/deploy.ts',
'!src/server.ts',
'!src/queue/index.ts',
'!src/services/soroban/index.ts',
'!src/observability/index.ts',
],
coverageThreshold: {
global: {
lines: 87,
statements: 87,
functions: 87,
branches: 80,
},
},
coverageReporters: ['text', 'lcov', 'json-summary'],
};