mocha
mocha copied to clipboard
feat: make forbid-only as default on CI
Description of the Change
- When
process.env.CIis true,forbid-only : trueis default value. And I changed one of conditional statements inpackage-scripts.jsto keep its function.
Alternate Designs
- There're may be a better way, but it's my best. 😂
Why should this be in core?
- Due to this change, We can prevent pushing to remote repo with
.only.
Benefits
- Due to this change, We can prevent pushing to remote repo with
.only.
Possible Drawbacks
- If this change apply to mocha, Existing users can be confused. Because project which use '.only' on purpose gonna make conflict on CI. So We've to announce about this change when this change is applied.
Applicable issues
- close #3030
Tests which use a fixture that has .only are failed. In Ci, we should handle this.
Coverage increased (+0.03%) to 93.594% when pulling 80e75c81b05edaa2e54f6d6bd04eb48f67ed1bd6 on JaeHyeonKim19:issue/3030 into 63eb80bd4907ac87b5cbde054ad8e6112fdcb939 on mochajs:master.
Any review😂?
👋 coming back to this @JaeHyeonKim19, are you still interested in working on this PR? As of https://github.com/mochajs/mocha/issues/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!)