From f625c5741ebdd97cabab4b31fce14204af111ec2 Mon Sep 17 00:00:00 2001 From: Chris Wilkinson Date: Fri, 17 Feb 2023 14:51:41 +0000 Subject: [PATCH] chore: use 'transform' for the ts-jest config They've deprecated the 'globals' way of setting options. Refs 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 8d110b6..9316b73 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: ['ts', 'js'], + transform: { + '^.+\\.ts$': [ + 'ts-jest', + { + diagnostics: false, + isolatedModules: true, + }, + ], + }, }