From 249a2a2457726210870db477050a2e6b62a1bf1a Mon Sep 17 00:00:00 2001 From: MapleLeaf <19603573+itsMapleLeaf@users.noreply.github.com> Date: Tue, 21 Dec 2021 13:35:30 -0600 Subject: [PATCH] widened moduleNameMapper for .js imports --- jest.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jest.config.js b/jest.config.js index 3b1efcb..f6800c2 100644 --- a/jest.config.js +++ b/jest.config.js @@ -10,7 +10,7 @@ const config = { ], }, moduleNameMapper: { - "(^\\./.+)\\.js$": "$1", + "(^(\\./|\\.\\./).+)\\.js$": "$1", }, extensionsToTreatAsEsm: [".ts", ".tsx"], verbose: true,