-
Notifications
You must be signed in to change notification settings - Fork 150
Enforce await on async utilities #49
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
Thanks for suggesting this idea @cdagli! This rule currently exists because Have you encountered a use case where someone forgot to use |
Yes, I know couple of people that keeps forgetting to add await these methods 😄 (Myself included) Weird stuff starts to happen if you forget to await. And for example if you have a test case that ends up with |
I just realized eslint is not warning about that (I thought it did because those async utils are fixed, not as |
In the end, forgetting to |
👍 I would love this rule! |
I'm back to handle this issue. Just to clarify, the expected utils checked here would be:
Right? |
🎉 This issue has been resolved in version 2.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Currently https://github.com/Belco90/eslint-plugin-testing-library/blob/master/docs/rules/await-async-query.md rule only supports findBy* and findByAll*. What do you think about enabling it for other async utilities, too?
https://testing-library.com/docs/dom-testing-library/api-async
The text was updated successfully, but these errors were encountered: