From 16e96a1b9747d9128a5a436c0db59592984a2258 Mon Sep 17 00:00:00 2001 From: Rhys Evans Date: Wed, 30 Oct 2024 18:40:50 +0000 Subject: [PATCH] test: fix jest tests by mapping .js to an extensionless reference, which means .ts will be found --- jest.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/jest.config.js b/jest.config.js index ec9282ea..4acff3b1 100644 --- a/jest.config.js +++ b/jest.config.js @@ -6,5 +6,6 @@ export default { }, moduleNameMapper: { '@fetch-mock/core': '/packages/core/dist/cjs/index.js', + '(.+)\\.js': '$1', }, };