Skip to content

Invalid version check for mocha 10#179

Open
rickh18 wants to merge 1 commit intomichaelleeallen:masterfrom
rickh18:master
Open

Invalid version check for mocha 10#179
rickh18 wants to merge 1 commit intomichaelleeallen:masterfrom
rickh18:master

Conversation

@rickh18
Copy link

@rickh18 rickh18 commented Dec 12, 2022

The version check in index.js is not valid for mocha 10+

 var version = json.version;
  if (version >= "6") {
    createStatsCollector = require("mocha/lib/stats-collector");
    mocha6plus = true;
  } else {
    mocha6plus = false;
  }

This will break the stats collector. Other functions work fine.

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.

1 participant