Skip to content

Commit

Permalink
Merge pull request #1254 from YOU54F/cypress-multi-reporters-mocha-10+
Browse files Browse the repository at this point in the history
Cypress multi reporters mocha 10+
  • Loading branch information
YOU54F authored Jan 27, 2025
2 parents 786ece7 + df89ad8 commit 5cdaed7
Show file tree
Hide file tree
Showing 3 changed files with 421 additions and 319 deletions.
3 changes: 2 additions & 1 deletion cypress-multi-reporters/lib/MultiReporters.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const util = require('util');
const mocha = require('mocha');
const {Base} = mocha.reporters;
const path = require('path');
const semver = require('semver');

let createStatsCollector;
let mocha6plus;
Expand All @@ -23,7 +24,7 @@ try {
);
const {version} = json;
// istanbul ignore else
if (version >= '6') {
if (semver.gte(version, '6.0.0')) {
createStatsCollector = require('mocha/lib/stats-collector');
mocha6plus = true;
}
Expand Down
15 changes: 8 additions & 7 deletions cypress-multi-reporters/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,19 @@
"homepage": "https://github.com/YOU54F/cypress-plugins/tree/master/cypress-multi-reporters",
"license": "MIT",
"dependencies": {
"debug": "^4.3.7",
"lodash": "^4.17.21"
"debug": "^4.4.0",
"lodash": "^4.17.21",
"semver": "^7.6.3"
},
"devDependencies": {
"@commitlint/cli": "19.5.0",
"@commitlint/config-conventional": "19.5.0",
"@commitlint/cli": "19.6.1",
"@commitlint/config-conventional": "19.6.0",
"chai": "5.1.2",
"coveralls": "3.1.1",
"eslint": "9.13.0",
"eslint": "9.19.0",
"eslint-config-defaults": "9.0.0",
"husky": "9.1.6",
"mocha": "8.4.0",
"husky": "9.1.7",
"mocha": "11.1.0",
"mocha-lcov-reporter": "1.3.0",
"nyc": "17.1.0",
"sinon": "19.0.2",
Expand Down
Loading

0 comments on commit 5cdaed7

Please sign in to comment.