From 07a60b163303f307ecf51444a59ae652d20beb6a Mon Sep 17 00:00:00 2001 From: Kenta Kase Date: Sun, 18 Sep 2022 21:17:58 +0900 Subject: [PATCH] chore(ci): Re enable ts-jest isolatedModules option --- jest.config.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/jest.config.js b/jest.config.js index 6597b77c..61697014 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,5 +1,4 @@ module.exports = { - preset: 'ts-jest', reporters: [ 'default', [ 'jest-junit', { @@ -14,9 +13,7 @@ module.exports = { testEnvironment: 'node', clearMocks: true, // https://kulshekhar.github.io/ts-jest/docs/getting-started/options/isolatedModules - globals: { - 'ts-jest': { - isolatedModules: true, - }, + transform: { + '^.+\\.tsx?$': ['ts-jest', { isolatedModules: true }] }, }; \ No newline at end of file