-
Notifications
You must be signed in to change notification settings - Fork 147
new rule: no-multiple-assertions-wait-for #133
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
Hey Renato! Thanks for your proposal, it sounds good. Would like to give it a try? PRs are welcome! |
What name do you prefer for this one?
|
Maybe |
should we also cover the deprecated methods? like wait and waitForElement? |
I think so. It should be easy after implemented for |
While being easy, is it needed? Just thinking out loud here 😅 |
oh nono, that's great! Let's continue over your branch. You can continue with it, I can just take another item We did not know you were at it. Awesome 🚀 🚀 you might want to join the debate here 😄 |
@gndelia Great! Will continue work on this.
Yes! Sorry for the delay, I read the discussion from #165 to up to date about the directions.
@timdeschryver I have mixed feelings about. Talking about myself, the project that I work are in top of migration for RTL v10 and even with lint fix we have a few points to double check, but we're thinking about use TL eslint to ensure good practices without wait for migration, in this case, could be good to support deprecated methods, but, since it's a opt-in rule, I could only enable it in the final of the migration. I would suggest to start with |
@renatoagds sorry, didn't know you were still working on it! I'm happy with your suggestion to start only with |
🎉 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 📦🚀 |
Following the proposed in Kent at his post (https://kentcdodds.com/blog/common-mistakes-with-react-testing-library). I would like to suggest a new rule that detects multiple expect inside a wait-for:
The text was updated successfully, but these errors were encountered: