-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Forbid only in mocha #2493
Forbid only in mocha #2493
Conversation
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.
😮 this is awesome! Had no idea this was a thing.
We should also add it for the yarn test-unit
above, it probably needs to be passed through inside bin/test.js
for that.
How do you wanna handle that? It seems that |
Yeah @jerch added that, how about using the same flag name and doing the test file check by filtering out flag args: |
I hope I understood you correctly, I think you meant |
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.
👌
Thanks for looking into this, will prevent accidentally merging .only again 😅
I saw #2489 and was thinking, how about forbidding
.only
in Mocha for CI only? Should be way easier to catch if someone mistakenly commits it.