Skip to content

Commit 2006741

Browse files
chore(jest): Update jest config using 'npx ts-jest config:migrate package.json'
1 parent aadbadf commit 2006741

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

package.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,18 +88,20 @@
8888
".(ts|tsx)": "ts-jest"
8989
},
9090
"moduleFileExtensions": [
91-
"ts",
92-
"tsx",
9391
"js",
94-
"json"
92+
"json",
93+
"ts",
94+
"tsx"
9595
],
9696
"testURL": "http://localhost:4000",
9797
"testRegex": "/__tests__/.*\\.(ts|tsx|js)$",
9898
"globals": {
9999
"ts-jest": {
100-
"tsConfigFile": "./tsconfig.jest.json"
100+
"tsConfig": "./tsconfig.jest.json"
101101
}
102-
}
102+
},
103+
"preset": "ts-jest",
104+
"testMatch": null
103105
},
104106
"husky": {
105107
"hooks": {

tsconfig.jest.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"compilerOptions": {
3+
"allowJs": true,
34
"jsx": "react",
45
"module": "commonjs",
56
"target": "es6"

0 commit comments

Comments
 (0)