Skip to content

Commit

Permalink
fix jest package.json moduleNameMapper
Browse files Browse the repository at this point in the history
  • Loading branch information
nullice committed Jun 21, 2018
1 parent e6284d4 commit 810d33a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .zero/template/package.json.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@
"node_modules",
"src"
],
"moduleNameMapper": {
"@/(.*)": "<rootDir>/src/$1"
},
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
"moduleFileExtensions": [
"ts",
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@
"node_modules",
"src"
],
"moduleNameMapper": {
"@/(.*)": "<rootDir>/src/$1"
},
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
"moduleFileExtensions": [
"ts",
Expand Down

0 comments on commit 810d33a

Please sign in to comment.