Skip to content

Commit 2b12cf9

Browse files
Extract Jest configuration to separate file
1 parent ea04f4e commit 2b12cf9

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module.exports = {
2+
collectCoverageFrom: ['./src/**/?*.(js|ts)', '!**/src/**/?*.d.ts'],
3+
restoreMocks: true,
4+
globals: {
5+
'ts-jest': {
6+
isolatedModules: true,
7+
tsconfig: 'tsconfig.test.json',
8+
},
9+
},
10+
preset: 'ts-jest',
11+
testEnvironment: 'node',
12+
verbose: true,
13+
};

packages/strings-to-regex/package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@
2626
"release": "npx release-it --no-increment",
2727
"test": "jest --coverage"
2828
},
29-
"jest": {
30-
"preset": "ts-jest",
31-
"restoreMocks": true
32-
},
3329
"devDependencies": {
3430
"@types/jest": "^27.0.1",
3531
"@types/jest-when": "^3.5.0",

0 commit comments

Comments
 (0)