From c8f9e7e56503ee3227f7a66e50a6a8d185919898 Mon Sep 17 00:00:00 2001 From: Liam Date: Mon, 15 Apr 2024 08:38:31 -0400 Subject: [PATCH] Resolve jest config deprecations --- assets/jest.config.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/assets/jest.config.js b/assets/jest.config.js index 192b61fd..32c0a334 100644 --- a/assets/jest.config.js +++ b/assets/jest.config.js @@ -30,12 +30,13 @@ export default { moduleNameMapper: { './js/(.*)': '/js/$1', }, - transform: {}, - globals: { - extensionsToTreatAsEsm: ['.ts', '.js'], - 'ts-jest': { + transform: { + '^.+\\.tsx?$': ['ts-jest', { tsconfig: '/tsconfig.json', useESM: true, - }, + }] }, + globals: { + extensionsToTreatAsEsm: ['.ts', '.js'], + } };