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
Rule proposal: avoid before / after hooks #39
Labels
Comments
Should this then also forbid |
jfmengels
added a commit
to jfmengels/eslint-plugin-mocha
that referenced
this issue
Jul 26, 2016
jfmengels
added a commit
to jfmengels/eslint-plugin-mocha
that referenced
this issue
Jul 26, 2016
You are right, the same problem could be created by |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using
before
orafter
hooks is almost always a sign that you use shared state between multiple tests. This could lead to unwanted side-effects, e.g. some tests only pass/fail if the tests are executed in a specific order.The text was updated successfully, but these errors were encountered: