-
Notifications
You must be signed in to change notification settings - Fork 148
fix(no-wait-for-side-effects): false positive inside .then()
#645
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
fix(no-wait-for-side-effects): false positive inside .then()
#645
Conversation
Added tests and a mention of edge case to rule documentation Refs: testing-library#500
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing this one too! Just a couple of small changes and should be ready to go.
.then()
.then()
Remove awaits as the promise is waited by .then()
Reuse existing helper function to make solution simpler
Remove await as the promise is waited by .then()
Remove await as the promise is waited by .then()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good!
🎉 This PR is included in version 5.6.4 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Checks
npm run generate:rules-list
)npm run generate:configs
)Changes
.then()
, and if it is, not report itContext
Closes: #500