Skip to content

Commit b9dc36f

Browse files
committed
fix: update jest for react navigation
1 parent 9582b60 commit b9dc36f

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

package.json

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,15 @@
4040
},
4141
"jest": {
4242
"preset": "react-native",
43-
"moduleFileExtensions": [
44-
"ts",
45-
"tsx",
46-
"js",
47-
"jsx",
48-
"json",
49-
"node"
43+
"transform": {
44+
"^.+\\.(bmp|gif|jpg|jpeg|mp4|png|psd|svg|webp|ttf|otf|m4v|mov|mp4|mpeg|mpg|webm|aac|aiff|caf|m4a|mp3|wav|html|pdf|obj)$": "<rootDir>/src/mocks/Files/index.js"
45+
},
46+
"transformIgnorePatterns": [
47+
"node_modules/(?!(jest-)?react-native|@react-native-community|@react-navigation)"
48+
],
49+
"setupFiles": [
50+
"./node_modules/react-native-gesture-handler/jestSetup.js",
51+
"<rootDir>/src/mocks/Setup/index.ts"
5052
]
5153
},
5254
"browserslist": {

0 commit comments

Comments
 (0)