-
Notifications
You must be signed in to change notification settings - Fork 61
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
False positive in mocha/max-top-level-suites
#224
Labels
Comments
Thanks for reporting. Looks like a bug to me. |
I should note, that I'd be willing to help out with this. I'm not sure if I have the AST chops to fix it, but I could certainly write a failing unit test, or add a note to the documentation. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I noticed that the
mocha/max-top-level-suites
rule seems to trigger erroneously if there is a function which generates nested describes outside of the scope of the top-level-suite.This creates the following output (notice, only one top-level describe)
But the rule still causes an error.
It seems that this can be resolved in my case by moving that function inside of the top-level describe callback, but I would generally prefer not to have to do that.
The text was updated successfully, but these errors were encountered: