-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
28 lines (28 loc) · 742 Bytes
/
jest.config.js
File metadata and controls
28 lines (28 loc) · 742 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
module.exports = {
testEnvironment: 'node',
testMatch: ['**/__tests__/**/*.test.js'],
collectCoverageFrom: [
'lib/**/*.js',
'app.js',
'!**/node_modules/**'
],
coverageDirectory: 'coverage',
coverageReporters: ['text', 'lcov', 'html'],
verbose: true,
// Default timeout for tests (30 seconds for network operations)
testTimeout: 30000,
// Setup different configurations based on test type
projects: [
{
displayName: 'unit',
testEnvironment: 'node',
testMatch: ['**/__tests__/**/*.test.js'],
testPathIgnorePatterns: ['integration']
},
{
displayName: 'integration',
testEnvironment: 'node',
testMatch: ['**/__tests__/**/*.integration.test.js']
}
]
};