-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
24 lines (23 loc) · 782 Bytes
/
Copy pathjest.config.js
File metadata and controls
24 lines (23 loc) · 782 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
module.exports = {
testEnvironment: 'node',
transform: {
'^.+\\.js$': ['babel-jest', { rootMode: 'upward' }]
},
moduleNameMapper: {
'^(\\.{1,2}/.*)\\.js$': '$1'
},
moduleFileExtensions: ['js', 'json'],
testPathIgnorePatterns: ['/node_modules/', '/build/'],
testMatch: ['**/__tests__/**/*.test.js', '**/?(*.)+(spec|test).js'],
collectCoverageFrom: [
'src/**/*.js',
'!src/**/*.config.js',
'!src/server.js',
'!src/**/index.js'
],
coverageDirectory: 'coverage',
verbose: true,
testTimeout: 30000, // Increased for integration tests with DB operations
// Note: Integration tests should be run with --runInBand flag to avoid database conflicts
// Use: npm run test:integration
}