-
Notifications
You must be signed in to change notification settings - Fork 147
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
fireEvent with Promises #166
Comments
Oh wow, I didn't even know about this error and I just realized I suffered it! It could be a good addition to help users spotting the issue in this particular case, though having already a runtime error from testing library seems enough, doesn't it? Not sure what we should do, but you almost got the implementation 😅 |
👍 I'll add it later this week with and add test cases/docs, we can still decide if we want to add it then 🙂 |
🎉 This issue has been resolved in version 4.0.0-beta.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This issue has been resolved in version 4.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Based on testing-library/dom-testing-library#609, I think we could add a new rule. I'm not 100% sure if it's worth it, because:
fireEvent(Promise)
,fireEevent(new Promise()
,fireEvent(findBy...)
The implementation of the rule might look like this.
What do you tink?
The text was updated successfully, but these errors were encountered: