-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.integration.config.js
More file actions
36 lines (36 loc) · 1.05 KB
/
jest.integration.config.js
File metadata and controls
36 lines (36 loc) · 1.05 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
/**
* Jest configuration for integration tests
*
* Key differences from unit test config:
* - Runs ONLY integration tests
* - Does NOT use mocks - makes real API calls
* - Longer timeout for API calls (60 seconds)
* - Custom reporter for provider-grouped statistics
*/
module.exports = {
testEnvironment: 'node',
testMatch: [
'**/__tests__/integration/**/*.test.js'
],
testPathIgnorePatterns: [
'/node_modules/'
],
modulePathIgnorePatterns: [
'<rootDir>/node_modules/',
// Exclude mocks directory so real API calls are made
'<rootDir>/__tests__/__mocks__/'
],
// Don't auto-mock anything
automock: false,
// Reset mocks between tests
clearMocks: true,
// Setup file for loading .env
setupFilesAfterEnv: ['<rootDir>/__tests__/setup.js'],
// Longer timeout for API calls
testTimeout: 60000,
// Use default reporter plus custom provider stats reporter
reporters: [
'default',
'<rootDir>/__tests__/integration/providerStatsReporter.js'
]
};