-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.integration.config.js
More file actions
42 lines (42 loc) · 1.13 KB
/
jest.integration.config.js
File metadata and controls
42 lines (42 loc) · 1.13 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
/** @type {import('jest').Config} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
roots: ['<rootDir>/tests'],
testMatch: ['**/?(*.)+(integration|e2e).test.ts'],
transform: {
'^.+\\.tsx?$': 'ts-jest',
},
moduleNameMapper: {
'^@collectors/(.*)$': '<rootDir>/src/collectors/$1',
'^@processors/(.*)$': '<rootDir>/src/processors/$1',
'^@lambda/(.*)$': '<rootDir>/src/lambda/$1',
'^@utils/(.*)$': '<rootDir>/src/utils/$1',
'^@database/(.*)$': '<rootDir>/src/database/$1',
},
collectCoverageFrom: [
'src/**/*.ts',
'!src/**/*.test.ts',
'!src/**/*.d.ts',
'!src/index.ts',
],
coverageDirectory: 'coverage/integration',
coverageReporters: ['text', 'lcov', 'html'],
coveragePathIgnorePatterns: ['/node_modules/', '/tests/'],
coverageThreshold: {
global: {
branches: 65,
functions: 65,
lines: 65,
statements: 65,
},
},
setupFilesAfterEnv: ['<rootDir>/tests/setup.integration.ts'],
setupFiles: ['<rootDir>/tests/setup.env.ts'],
testTimeout: 60000,
verbose: true,
bail: 1,
maxWorkers: 2,
forceExit: true,
detectOpenHandles: true,
};