Skip to content

Commit

Permalink
Make react-navigation work with jest
Browse files Browse the repository at this point in the history
  • Loading branch information
DoctorJohn committed Feb 18, 2021
1 parent f253f77 commit 7c1a372
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"eslint": "^6.8.0",
"husky": "^4.3.8",
"jest": "^25.1.0",
"jest-transform-stub": "^2.0.0",
"metro-react-native-babel-preset": "^0.59.0",
"prettier": "^2.2.1",
"react-test-renderer": "16.13.1"
Expand All @@ -50,7 +51,9 @@
"preset": "react-native",
"setupFiles": [
"./node_modules/react-native-gesture-handler/jestSetup.js"
]
],
"moduleNameMapper": {
"^.+.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$": "jest-transform-stub"
}
},
"husky": {
Expand Down

0 comments on commit 7c1a372

Please sign in to comment.