From 44e321f926d74b1aaf6ed9f9e434f8c5b1d3e6d0 Mon Sep 17 00:00:00 2001 From: Chris Wilkinson Date: Mon, 6 Mar 2023 13:50:23 +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, + }, + ], + }, }