-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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: make forbid-only as default on CI #3987
Conversation
Tests which use a fixture that has |
Test cases broken because of making forbid-only as default in CI..
Any review😂? |
👋 coming back to this @JaeHyeonKim19, are you still interested in working on this PR? As of #5027 there are again maintainers who can review it now. No worries if you no longer have time - but if you do that'd be great! (I do see that your last message was asking for review - unless directed otherwise we'll try to review it once we're ramped up enough!) |
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.
The functional default value change looks good to me! Requesting changes I'm not sold on the --no-forbid-only
, and would like to see docs. Thanks! 🙌
(if you don't have time for this, we'll go ahead and send a new PR after a while)
if (!/^only-/.test(testName)) { | ||
mochaParams += ' --forbid-only'; | ||
if (/^only-/.test(testName)) { | ||
mochaParams += ' --no-forbid-only'; |
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.
[Question] 🤔 Is --no-forbid-only
necessary? My interpretation of #3030 (comment) was that the issue can be resolved with just the change to forbid-only
's default value.
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.
[Docs] https://mochajs.org/#-forbid-only should be updated to mention this, too. Folks will want to know if the default value isn't always falsy.
Description of the Change
process.env.CI
is true,forbid-only : true
is default value. And I changed one of conditional statements inpackage-scripts.js
to keep its function.Alternate Designs
Why should this be in core?
.only
.Benefits
.only
.Possible Drawbacks
Applicable issues