-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
37 lines (37 loc) · 883 Bytes
/
jest.config.js
File metadata and controls
37 lines (37 loc) · 883 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
29
30
31
32
33
34
35
36
37
module.exports = {
collectCoverage: false,
collectCoverageFrom: ['**/*.{js,ts}', '!**/*.spec.{js,ts}', '!dist/**'],
coverageDirectory: '../coverage',
coverageReporters: ['html', 'text', 'lcov'],
coverageThreshold: {
global: {
branches: 25,
functions: 25,
lines: 25,
statements: 25
}
},
forceExit: true,
globalSetup: './jest.setup.js',
globals: {
'ts-jest': {
tsconfig: 'tsconfig.json',
diagnostics: true,
experimental: true,
compilerHost: true
}
},
moduleFileExtensions: ['js', 'json', 'ts'],
notify: true,
preset: 'ts-jest',
rootDir: '.',
setupFilesAfterEnv: ['jest'],
testEnvironment: 'node',
testPathIgnorePatterns: ['/node_modules/', '/dist/', '/coverage/'],
testRegex: '.spec.ts$',
testURL: 'http://localhost',
transform: {
'^.+\\.ts$': 'ts-jest'
},
verbose: true
}