From 400d48526f221d20d9aa64c823b4675d981d9e22 Mon Sep 17 00:00:00 2001 From: Chris Wilkinson Date: Wed, 26 Oct 2022 12:16:58 +0100 Subject: [PATCH] Use 'transform' for the ts-jest config They've deprecated the 'globals' way of setting options. Refs #388, https://github.com/kulshekhar/ts-jest/pull/3780 --- jest.config.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/jest.config.js b/jest.config.js index 378d3c92c..f912e2702 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,13 +1,15 @@ module.exports = { - globals: { - 'ts-jest': { - diagnostics: false, - isolatedModules: true, - }, - }, injectGlobals: false, - preset: 'ts-jest', testEnvironment: 'node', roots: ['./src/', './test/'], moduleFileExtensions: ['js', 'ts'], + transform: { + '^.+\\.ts$': [ + 'ts-jest', + { + diagnostics: false, + isolatedModules: true, + }, + ], + }, }