jest.integration.config.js•857 B
/** @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'],
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
}]
]
}