From 42a2b189e8303b57f8fcbc14c721637838ae504f Mon Sep 17 00:00:00 2001 From: Viacheslav Turovskyi Date: Tue, 15 Nov 2022 16:16:49 +0200 Subject: [PATCH] test: modify location of `ts-jest` config in `jest.config.js` (#100) --- jest.config.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/jest.config.js b/jest.config.js index 6243549..933cea7 100644 --- a/jest.config.js +++ b/jest.config.js @@ -11,7 +11,12 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.tsx?$': 'ts-jest', + '^.+\\.tsx?$': [ + 'ts-jest', + { + tsconfig: 'tsconfig.test.json', + }, + ], }, // Test spec file resolution pattern @@ -24,9 +29,4 @@ module.exports = { testTimeout: 20000, //setupFiles: ['./tests/jest.setup.ts'], - globals: { - 'ts-jest': { - tsconfig: 'tsconfig.test.json', - }, - }, };