-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
51 lines (49 loc) · 929 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
40
41
42
43
44
45
46
47
48
49
50
51
/* eslint-disable notice/notice */
// Reference: https://jestjs.io/docs/en/configuration.html
module.exports = {
displayName: {
name: 'npm-preview-package',
color: 'blueBright'
},
automock: false,
bail: 2,
clearMocks: true,
collectCoverage: false,
collectCoverageFrom: [
'src/**/*.ts',
'!src/**/*.d.ts'
],
coverageDirectory: "coverage",
coveragePathIgnorePatterns: [
"\\\\node_modules\\\\"
],
coverageReporters: [
"text",
"lcov",
"clover"
],
coverageThreshold: {
global: {
branches: 80,
functions: 80,
lines: 80,
statements: 80
}
},
rootDir: ".",
roots: [
"<rootDir>/test",
"<rootDir>/src/lib"
],
setupFilesAfterEnv: [ 'jest-extended' ],
testEnvironment: "node",
testMatch: [
'**/*.spec.ts'
],
testPathIgnorePatterns: [
"\\\\node_modules\\\\"
],
transform: {
'^.+\\.ts$': 'ts-jest'
},
};