From 1bfba9a45cf236d5a276f8e21ee7cb34221c79c7 Mon Sep 17 00:00:00 2001 From: "Kamat, Trivikram" <16024985+trivikr@users.noreply.github.com> Date: Wed, 14 Jun 2023 21:00:07 +0000 Subject: [PATCH] test: define ts-jest config inside transform Refs: https://github.com/kulshekhar/ts-jest/pull/3780 --- jest.config.base.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/jest.config.base.js b/jest.config.base.js index a3354d0b950b..693dd2c32873 100644 --- a/jest.config.base.js +++ b/jest.config.base.js @@ -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, }, - }, + ], }, };