-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.integration.js
More file actions
47 lines (41 loc) · 1.18 KB
/
jest.config.integration.js
File metadata and controls
47 lines (41 loc) · 1.18 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
46
47
/**
* Jest configuration for integration tests
*
* These tests run against the live ProxyCheck.io API
*/
module.exports = {
displayName: 'Live API Integration',
testMatch: [
'**/tests/integration/**/*.test.ts',
'**/tests/integration/**/*.test.js'
],
testPathIgnorePatterns: [
'/node_modules/',
'/dist/'
],
transform: {
'^.+\\.tsx?$': ['ts-jest', {
tsconfig: {
esModuleInterop: true,
allowSyntheticDefaultImports: true
}
}]
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json'],
testEnvironment: 'node',
setupFilesAfterEnv: ['<rootDir>/tests/integration/setup.ts'],
// Integration test specific settings
testTimeout: 30000, // 30 seconds per test
maxConcurrency: 2, // Limit concurrent tests to respect rate limits
maxWorkers: 1, // Run tests serially to avoid rate limiting
// Coverage settings (integration tests don't need coverage)
collectCoverage: false,
// Verbose output for debugging
verbose: true,
// Note: ts-jest config moved to transform section
// Module name mapping
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1',
'^@tests/(.*)$': '<rootDir>/tests/$1'
}
};