-
Notifications
You must be signed in to change notification settings - Fork 7
/
jest-it.config.cjs
44 lines (44 loc) · 1.03 KB
/
jest-it.config.cjs
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
module.exports = {
"roots": [
"<rootDir>/lib",
"<rootDir>/bin",
"<rootDir>/tests",
],
"testMatch": [
"**/?(*.)+(spec|test).+(ts|tsx|js)"
],
extensionsToTreatAsEsm: ['.ts'],
moduleNameMapper: {
'^(\\.{1,2}/.*)\\.js$': '$1',
},
transform: {
'^.+\\.(ts|tsx)$': [
'ts-jest',
{
useESM: true,
},
],
},
"coveragePathIgnorePatterns": [
"<rootDir>/tests",
"<rootDir>/node_modules"
],
"collectCoverageFrom": [
"lib/**/*.ts",
"bin/**/*.ts",
"!lib/utils/test-helper-functions.ts"
],
"errorOnDeprecated": true,
"collectCoverage": true,
"coverageThreshold": {
"global": {
"branches": 20,
"functions": 20,
"lines": 20,
"statements": -700
},
},
setupFilesAfterEnv: ['./lib/jest.setup.js'],
"coverageReporters": ["json-summary", "json", "text"],
"preset": "jest-puppeteer"
}