Skip to content
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

remove default js in "--watch-extensions" option; closes #3275 #3288

Merged
merged 1 commit into from
Mar 22, 2018
Merged

remove default js in "--watch-extensions" option; closes #3275 #3288

merged 1 commit into from
Mar 22, 2018

Conversation

TheDancingCode
Copy link
Contributor

Description of the Change

Changes the behaviour of the --watch-extensions option. No longer includes js by default, meaning that the specified list becomes an exclusive and not an additional set of extensions.

Benefits

Closes #3275.

Possible Drawbacks

Mocha will not behave as expected for people who rely on js files always being watched.

Applicable issues

#3275

@jsf-clabot
Copy link

jsf-clabot commented Mar 21, 2018

CLA assistant check
All committers have signed the CLA.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.05%) to 90.086% when pulling 159f0f7 on TheDancingCode:issue/3275 into 19b764d on mochajs:master.

@outsideris outsideris added the type: bug a defect, confirmed by a maintainer label Mar 21, 2018
@boneskull
Copy link
Member

Originally I called this a "bug", but it's not. You can see from the original help text that it's acting in a way consistent with the documentation.

That makes this a purely breaking change, so it necessitates a major release. This PR LGTM, but I want to discuss a branching/release plan with @mochajs/core before this is merged.

@boneskull boneskull added semver-major implementation requires increase of "major" version number; "breaking changes" area: node.js command-line-or-Node.js-specific and removed type: bug a defect, confirmed by a maintainer labels Mar 21, 2018
@boneskull boneskull added this to the v6.0.0 milestone Mar 22, 2018
@boneskull boneskull merged commit c580294 into mochajs:master Mar 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: node.js command-line-or-Node.js-specific semver-major implementation requires increase of "major" version number; "breaking changes"
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants