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

Support for mocha 8.2.0 validateLegacyPlugin change #86

Merged
merged 1 commit into from
Oct 20, 2020

Conversation

BeeMargarida
Copy link
Contributor

What's the problem this PR addresses?

The new version of mocha (8.2.0) included a change that renamed the validatePlugin function to validateLegacyPlugin.

Even though mochapack only supports mocha up to version 7, projects that use other dependencies that use recent versions of mocha override the mocha version of mochapack. This is a quick fix for the change.

How did you fix it?

Checks if the validatePlugin function is defined, if not, uses the validateLegacyPlugin function.

Not sure if this is the best solution, if not, I'm open to changes :)

@larixer larixer merged commit 6954bed into sysgears:master Oct 20, 2020
@larixer
Copy link
Member

larixer commented Oct 20, 2020

@BeeMargarida I see no reason to not support Mocha 8, our tests pass for Mocha 8 after minor tweaks: #87
Both your change and #87 is published now in [email protected]. Thank you for your contribution!

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.

2 participants