-
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
no-setup-in-describe
triggers on describe.skip
#249
Comments
Can you explain why it shouldn’t trigger? If the test code is not ready or somehow broken it should be removed. If it is important enough to keep the test code then it should be also important enough to refactor and move the setup code to the appropriate places. |
The rule should only trigger when there is setup code in the describe, and there isn't any. |
There is a |
I guess I understand the issue now. I thought this issue was a feature request to skip checking for setup code when using Thanks for reporting. That is definitely a bug. |
Fix no-setup-in-describe to not flag describe.skip()
This should not trigger
no-setup-in-describe
, yet it does.This can be worked around by moving the
skip
to each of theit
calls.The text was updated successfully, but these errors were encountered: