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

fix: Mocha version comparison fix #110

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

97andrewvaldez
Copy link

When upgrading to Mocha v10 this string comparison broke and started setting the mocha6plus variable to false. This doesn't allow the statsCollector to later get attached to the runner and caused us some issues in our pipeline.

I added semver as a simple way to check the correct versioning. If it's preferable to make a helper method instead of adding a new npm package I can do that too.

Either way, this should fix some inconsistencies that occur when using newer versions of Mocha.

@YOU54F
Copy link
Contributor

YOU54F commented Jan 27, 2025

I've been maintaining a fork called cypress-multi-reporters and this fix worked nicely for me!

Cheers

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