diff --git a/jest.config.js b/jest.config.js index 30d706e27..8af1b601c 100644 --- a/jest.config.js +++ b/jest.config.js @@ -64,11 +64,6 @@ module.exports = { // A set of global variables that need to be available in all test environments // globals: {}, - globals: { - 'ts-jest': { - tsconfig: 'tsconfig.test.json', - }, - }, // The maximum amount of workers used to run your tests. Can be specified as % or a number. E.g. maxWorkers: 10% will use 10% of your CPU amount + 1 as the maximum worker number. maxWorkers: 2 will use a maximum of 2 workers. // maxWorkers: "50%", @@ -181,7 +176,12 @@ module.exports = { // A map from regular expressions to paths to transformers transform: { - '^.+\\.(ts|tsx)?$': 'ts-jest', + '^.+\\.(ts|tsx)?$': [ + 'ts-jest', + { + tsconfig: 'tsconfig.test.json' + } + ], '^.+\\.(js|jsx)$': 'babel-jest', },