-
Notifications
You must be signed in to change notification settings - Fork 238
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
[valid-expect] include fixer for adding missing await #1140
Comments
Yup sounds good - we probably should have it as a suggestion if the function isn't already |
@y-hsgw if you mean suggesting adding Broadly speaking the logic should be something like:
While it might seem complicated on the face, I'm actually pretty sure we should be able to always accurately know and fix I'm happy to do incremental improvement PRs too, so we can aim for addressing the simple cases and then a followup PR for handling more complex ones |
🎉 This issue has been resolved in version 28.6.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
How do you feel about making
jest/valid-expect
rule fixable for cases whereawait
is missing ?So adding
await
in front ofexpect
in such cases:Fixed code then would look like
I'm happy to give it a try if there is a chance it will be merged :)
The text was updated successfully, but these errors were encountered: