-
Notifications
You must be signed in to change notification settings - Fork 236
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
feat: create max-nested-describe rule #845
feat: create max-nested-describe rule #845
Conversation
Thanks for the review @G-Rath, I've made the changes according to your comments. |
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.
Cheers, this is looking good! Just got some documentation fixes, and if you could add a few modifier & .each
tests that'd be great!
My bad with the brackets! been a long day my eyes must be going fuzzy. |
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.
Awesome! No worries about the brackets - thanks for putting up with all my nitty requests 😄
I'm now wondering if Thinking about the tests I've written, I easily have more than two nested
I'm not overly fussed about having the perfect default, but wouldn't mind hearing if @SimenB has any opinions on what a good nested level might be. |
Yeah agreed. it's pretty subjective so probably depends on the respective individuals/teams.Though I do think 10 is probably a bit much for nested describes. |
@dominictwlee sorry I've been very busy recently, both working on some core changes to Currently I think 5 is probably a good default, as it leaves you with 3 levels of nesting after a class describe + method describe. |
@G-Rath I've updated the default max to 5, and added a few tests + examples in docs for this. |
@G-Rath Just following up on this periodically, let me know if anything needs to change. |
@dominictwlee cheers, lets land it |
# [24.4.0](v24.3.7...v24.4.0) (2021-07-21) ### Features * create `max-nested-describe` rule ([#845](#845)) ([8067405](8067405))
🎉 This PR is included in version 24.4.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Resolves #362
The idea is the same as the above issue. I changed the rule name and options to something more consistent with the
max-nested-callbacks
rule.