Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to test? #448

Open
ChARCOOL opened this issue Oct 17, 2022 · 0 comments
Open

How to test? #448

ChARCOOL opened this issue Oct 17, 2022 · 0 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@ChARCOOL
Copy link

I couldn't find any documentation about testing. How can I test this library? We have components where we use navigationRef.isReady(), navigationRef.dispatch() and StackActions.push(). When I use navigationRef in NavigationContainer in test environment it throws error saying Warning: Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: an object with keys {isReady, dispatch}.. Testing only react-navigation stuff seems to work without problem e.g navigation.push().

@WrathChaos WrathChaos self-assigned this Oct 17, 2022
@WrathChaos WrathChaos added the help wanted Extra attention is needed label Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants