-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
39 lines (38 loc) · 1020 Bytes
/
jest.config.js
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
module.exports = {
collectCoverage: false,
coverageDirectory: "<rootDir>/reports/jest",
coverageReporters: ['clover', 'json', 'lcov', ['text', {skipFull: true}]],
coveragePathIgnorePatterns: [
'/dist/',
'/build/',
'/node_modules/',
'/test/',
],
coverageThreshold: {
'./src': {
branches: 100,
functions: 100,
lines: 100,
statements: 100,
},
},
transform: {
'^.+\\.ts$': ['ts-jest', {
tsconfig: 'tsconfig.json',
}],
},
reporters: [
'default'
],
// Only run tests in the unit and integration folders.
// All test files need to have the suffix `.test.ts`.
testRegex: 'src/tests/(components|usecases|utils|evaluation)/.*\\.test\\.ts$',
moduleFileExtensions: [
'ts',
'js',
],
testEnvironment: 'node',
// Make sure our tests have enough time to start a server
testTimeout: 60000,
verbose: true,
};