-
-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathjest.config.js
More file actions
22 lines (22 loc) · 675 Bytes
/
jest.config.js
File metadata and controls
22 lines (22 loc) · 675 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
module.exports = {
testEnvironment: 'node',
roots: ['<rootDir>/server'],
testMatch: ['**/__tests__/**/*.js', '**/?(*.)+(spec|test).js'],
collectCoverageFrom: [
'server/**/*.js',
'!server/.eslintrc.js',
'!server/**/__tests__/**',
'!server/models/**',
'!client/src/types/**',
'!server/node_modules/**',
'!**/index.ts',
'!**/constants.ts',
'!**/types.ts',
'!client/src/config/configSchema.ts'
],
coverageDirectory: 'coverage',
coverageReporters: ['text', 'lcov', 'html'],
testTimeout: 10000,
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
maxWorkers: 1
};