-
Notifications
You must be signed in to change notification settings - Fork 272
Implement renderHook
#869
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
Comments
Hi @thymikee! I'd be glad to help on this, I'll make a PR shortly |
@manugo-dev you should be able to use react-native-testing-library's waitfor instead. If I'm correct, being able to use the async utils from the library instead of utils such as waitForNextUpdate that are a bit too focused on implementation detailswas one of the reasons why it was decided to implement a renderHook equivalent on react-native-testing-library and on react-testing-library's side |
Closing as implemented by #963. |
Am I correct in assuming that what you mean is there's no built in way to Edit: ignore this comment, moving discussions over to #1030 |
I believe what they mean is that you can simply use
|
Yes that's how the other libraries typically work with waitFor, but that's not the functionality I'm seeing with RNTL. I opened a separate issue here that I'm going to be looking more into |
Describe the Feature
See testing-library/react-testing-library#991 for details
Possible Implementations
Copy the implementation from RTL.
The text was updated successfully, but these errors were encountered: