-
Notifications
You must be signed in to change notification settings - Fork 45
/
jest.config.js
50 lines (49 loc) · 1.01 KB
/
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
// @ts-check
module.exports = {
testEnvironment: 'node',
moduleFileExtensions: [
'js',
'json',
'node',
'ts',
],
collectCoverage: true,
coverageReporters: [
'json',
'lcov',
'cobertura',
'text',
'html',
'clover',
],
coveragePathIgnorePatterns: [
'/node_modules/',
'.*/tests/.*',
],
globals: {
'ts-jest': {
tsconfig: 'tsconfig.json',
},
},
testMatch: [
'**/test/*.test.ts',
'!**/test/**/*.d.ts',
],
verbose: true,
preset: 'ts-jest',
collectCoverageFrom: [
"src/spectral/functions/*.ts",
"!spectral/*.d.ts",
"!spectral/functions/*.d.ts",
],
coverageThreshold: {
"src/spectral/functions/*.ts": {
"statements": 80
}
},
moduleNameMapper: {
"^nimma/legacy$": "<rootDir>/node_modules/nimma/dist/legacy/cjs/index.js",
"^nimma/(.*)": "<rootDir>/node_modules/nimma/dist/cjs/$1",
"^@stoplight/spectral-ruleset-bundler/(.*)$": "<rootDir>/node_modules/@stoplight/spectral-ruleset-bundler/dist/$1"
},
}