Skip to content

Commit

Permalink
add moduleNameMapper to resolve src path in test files
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Kuhn committed Sep 1, 2023
1 parent ebc92b1 commit f7c500e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
"json",
"ts"
],
"moduleNameMapper": {
"@src/(.*)": "<rootDir>/$1"
},
"rootDir": "src",
"testEnvironment": "node",
"testRegex": ".*\\.spec\\.ts$",
Expand Down

0 comments on commit f7c500e

Please sign in to comment.