Skip to content

Commit

Permalink
configure jest to treat .js as .ts
Browse files Browse the repository at this point in the history
  • Loading branch information
boopathi committed Sep 13, 2024
1 parent 88f9a79 commit 6da7eab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@
"js",
"json"
],
"moduleNameMapper": {
"(.+)\\.js": "$1"
},
"testEnvironment": "node",
"testRegex": "(/tests/.*|(\\.|/)test)\\.ts$",
"transform": {
Expand Down

0 comments on commit 6da7eab

Please sign in to comment.