-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.integration.config.js
More file actions
40 lines (40 loc) · 963 Bytes
/
jest.integration.config.js
File metadata and controls
40 lines (40 loc) · 963 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('ts-jest').JestConfigWithTsJest} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testMatch: ['**/__integration__/**/*.test.ts?(x)', '**/*.integration.test.ts?(x)'],
setupFilesAfterEnv: ['<rootDir>/jest.integration.setup.js'],
transform: {
'^.+\\.tsx?$': [
'ts-jest',
{
tsconfig: 'tsconfig.test.json',
isolatedModules: true,
diagnostics: {
ignoreCodes: [2304, 2582, 2580, 2322, 2339, 2345, 2554, 2769]
}
}
]
},
globals: {
'ts-jest': {
isolatedModules: true
}
},
collectCoverage: true,
collectCoverageFrom: [
'src/api/**/*.{ts,tsx}',
'src/mutations/**/*.{ts,tsx}',
'src/graphql/**/*.{ts,tsx}',
'!src/**/*.d.ts'
],
coverageThreshold: {
global: {
branches: 70,
functions: 70,
lines: 70,
statements: 70
}
},
testTimeout: 30000 // 30 seconds timeout for integration tests
};