Hello everyone I hope you're doing okey , I had this problem with googlesignin , I did mock it , then problem with firebase again did mock it , now Im getting this error and I can't find any solution for it
Asked
Active
Viewed 903 times
2 Answers
1
I believe adding a transformIgnorePatterns
to your jest config file will solve your problem.
transformIgnorePatterns: [
"node_modules/(?!(react-native-root-siblings|react-native|my-project|react-native-button)/)",
],
https://jestjs.io/docs/configuration#transformignorepatterns-arraystring https://jestjs.io/docs/tutorial-react-native#transformignorepatterns-customization

bgeffrault
- 118
- 5
-
type ErrorHandler = (error: mixed, isFatal: boolean) => void; ^^^^^^^^^^^^ SyntaxError: Unexpected identifier – Baha Th Jun 07 '22 at 13:51
0

Baha Th
- 27
- 5
-
Try with the one I added, you have to add all the packages that are in conflicts – bgeffrault Jun 07 '22 at 14:45
-