Skip to content

Commit

Permalink
Let jest use the ts files when importing js files
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-hauser committed Sep 8, 2024
1 parent b5f1691 commit 0b606c7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ export default {
preset: "ts-jest",
testEnvironment: "node",
rootDir: "./src",
moduleNameMapper: {
"^(\\.\\.?\\/.+)\\.jsx?$": "$1",
},
};

0 comments on commit 0b606c7

Please sign in to comment.