Closed
Description
Describe the bug
Recently I upgraded my project to 0.64 version and faced this issue when I run jest. The same error happened even after I tried with a fresh react-native project with package react-navigation
.
type ErrorHandler = (error: mixed, isFatal: boolean) => void;
^^^^^^^^^^^^
SyntaxError: Unexpected identifier
at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1350:14)
at Object.<anonymous> (node_modules/react-native/jest/setup.js:439:6)
Expected behavior
Jest should be completed without error.
Steps to Reproduce
- react-native init
- install all the
react-navigation
packages - set up the testing environment as documented. (https://callstack.github.io/react-native-testing-library/docs/react-navigation#setting-up-the-test-environment)
- run jest
Screenshots
Versions
Please help. Thanks in advance 🙏🏿