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

feat(mocha): deprecate mocha version 5 and below #1529

Merged
merged 2 commits into from
May 2, 2019
Merged

Conversation

simondel
Copy link
Member

No description provided.

Copy link
Member

@nicojs nicojs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably better to log the message somewhere else.

@@ -27,6 +27,7 @@ export default class MochaTestRunner implements TestRunner {
this.log.debug('Mocha >= 6 detected. Using mocha\'s `handleFiles` to load files');
this.testFileNames = this.mocha6DiscoverFiles(LibWrapper.handleFiles);
} else {
this.log.warn('DEPRECATED: Mocha < 6 detected. Please upgrade to at least Mocha version 6.');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably better to do this in the MochaConfigEditor. That way, it is only logged once, instead of once per test runner

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have moved it to the MochaOptionsLoader. That logic is called from the MochaConfigEditor and there was already a check for a 'legacy' Mocha version there.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nicojs nicojs merged commit 1c55350 into master May 2, 2019
@nicojs nicojs deleted the deprecate-mocha-pre5 branch May 2, 2019 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants