From f2317099a008ebad4fdb359a1f38d55730a1ccbd Mon Sep 17 00:00:00 2001 From: Aria Minaei Date: Sun, 30 Jul 2023 19:10:58 +0200 Subject: [PATCH] Fix the jest config --- jest.compat-tests.config.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/jest.compat-tests.config.js b/jest.compat-tests.config.js index 6099ac5..7b5ff69 100644 --- a/jest.compat-tests.config.js +++ b/jest.compat-tests.config.js @@ -25,4 +25,24 @@ module.exports = { // these tests take a long time to run, because each of them either runs a full build of a package, // or tests the build on a browser using playwright testTimeout: 1000 * 60 * 2, + transform: { + '^.+\\.tsx?$': [ + 'jest-esbuild', + { + sourcemap: true, + supported: { + 'dynamic-import': false, + }, + }, + ], + '^.+\\.js$': [ + 'jest-esbuild', + { + sourcemap: true, + supported: { + 'dynamic-import': false, + }, + }, + ], + }, }