Skip to content

Commit 8a5dca4

Browse files
committed
test: define ts-jest config inside transform
Refs: kulshekhar/ts-jest#3780
1 parent d0e376f commit 8a5dca4

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

jest.config.base.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@ const { compilerOptions } = require("@tsconfig/recommended/tsconfig.json");
33
module.exports = {
44
preset: "ts-jest",
55
testMatch: ["**/*.spec.ts", "!**/*.browser.spec.ts", "!**/*.integ.spec.ts"],
6-
globals: {
7-
"ts-jest": {
8-
tsconfig: {
6+
transform: {
7+
"^.+\\.tsx?$": [
8+
"ts-jest",
9+
{
910
...compilerOptions,
1011
noImplicitAny: false,
1112
strictNullChecks: false,
1213
},
13-
},
14+
],
1415
},
1516
};

0 commit comments

Comments
 (0)