From 0b606c793caa578b80c3898eac5f22af8c9a1838 Mon Sep 17 00:00:00 2001 From: Daniel Hauser Date: Sun, 8 Sep 2024 21:31:28 +0300 Subject: [PATCH] Let jest use the ts files when importing js files See: https://github.com/kulshekhar/ts-jest/issues/1057 --- jest.config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jest.config.js b/jest.config.js index 6fd5d237..3aab9045 100644 --- a/jest.config.js +++ b/jest.config.js @@ -3,4 +3,7 @@ export default { preset: "ts-jest", testEnvironment: "node", rootDir: "./src", + moduleNameMapper: { + "^(\\.\\.?\\/.+)\\.jsx?$": "$1", + }, };