Skip to content

Commit

Permalink
Update jest config to resolve react* from node_modules/*.
Browse files Browse the repository at this point in the history
  • Loading branch information
martinpovolny committed Sep 25, 2019
1 parent 800943d commit 05cae8e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ module.exports = {
'jsx'
],
moduleNameMapper: {
"\\.(css|scss)$": "identity-obj-proxy"
"\\.(css|scss)$": "identity-obj-proxy",
'^react$': '<rootDir>/node_modules/react/'
},
};

0 comments on commit 05cae8e

Please sign in to comment.