Skip to content

Commit

Permalink
test: define ts-jest config inside transform
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr committed Jun 14, 2023
1 parent 2e75c9b commit 1bfba9a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions jest.config.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ const { compilerOptions } = require("@tsconfig/recommended/tsconfig.json");
module.exports = {
preset: "ts-jest",
testMatch: ["**/*.spec.ts", "!**/*.browser.spec.ts", "!**/*.integ.spec.ts", "!**/*.e2e.spec.ts"],
globals: {
"ts-jest": {
tsconfig: {
transform: {
"^.+\\.tsx?$": [
"ts-jest",
{
...compilerOptions,
noImplicitAny: false,
strictNullChecks: false,
},
},
],
},
};

0 comments on commit 1bfba9a

Please sign in to comment.