-
-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathjest.integration.config.js
More file actions
33 lines (33 loc) · 973 Bytes
/
Copy pathjest.integration.config.js
File metadata and controls
33 lines (33 loc) · 973 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
/** @type {import('ts-jest').JestConfigWithTsJest} */
export default {
preset: 'ts-jest',
testEnvironment: 'node',
displayName: 'Integration Tests',
transform: {
'^.+\\.ts$': ['ts-jest', {
tsconfig: 'tsconfig.test.json',
useESM: true
}]
},
roots: ['<rootDir>/tests/integration'],
testMatch: ['**/*.integration.test.ts'],
moduleNameMapper: {
'^@substack-api/(.*)$': '<rootDir>/src/$1',
'^@test/(.*)$': '<rootDir>/tests/$1'
},
setupFilesAfterEnv: ['<rootDir>/tests/integration/setup.ts'],
testTimeout: 10000, // 10 seconds for local HTTP server calls
collectCoverage: false, // Integration tests don't need coverage
extensionsToTreatAsEsm: ['.ts'],
reporters: [
'default',
['jest-junit', {
outputDirectory: '.',
outputName: 'junit-integration.xml',
classNameTemplate: '{classname}',
titleTemplate: '{title}',
ancestorSeparator: ' › ',
usePathForSuiteName: true
}]
]
}