I am trying to unit test a navigation container and stack using jest. I have used the mocking for react-native-safe-area-context that is described in the library:
Looks like a misconfiguration for your jest setup rather than a bug in this repo. If you find a minimal reproduction that shows a bug, fee free to reopen the issue
Hey guys,
I am trying to unit test a navigation container and stack using jest. I have used the mocking for
react-native-safe-area-context
that is described in the library:jest.mock('react-native-safe-area-context', () => mockSafeAreaContext);
However, I am getting an error:
TypeError: _reactNative.InteractionManager.createInteractionHandle is not a function
Test file:
I am running: "@react-navigation/bottom-tabs": "^6.5.7", "@react-navigation/drawer": "^6.6.2", "@react-navigation/native": "^6.0.8", "@react-navigation/native-stack": "^6.9.12", "@react-navigation/stack": "^6.2.0", "react-native": "^0.72", "react-native-safe-area-context": "^4.9.0",
Anyone know how to resolve this?
Cheers