Skip to content

Commit 5cdaed7

Browse files
authored
Merge pull request #1254 from YOU54F/cypress-multi-reporters-mocha-10+
Cypress multi reporters mocha 10+
2 parents 786ece7 + df89ad8 commit 5cdaed7

File tree

3 files changed

+421
-319
lines changed

3 files changed

+421
-319
lines changed

cypress-multi-reporters/lib/MultiReporters.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const util = require('util');
1313
const mocha = require('mocha');
1414
const {Base} = mocha.reporters;
1515
const path = require('path');
16+
const semver = require('semver');
1617

1718
let createStatsCollector;
1819
let mocha6plus;
@@ -23,7 +24,7 @@ try {
2324
);
2425
const {version} = json;
2526
// istanbul ignore else
26-
if (version >= '6') {
27+
if (semver.gte(version, '6.0.0')) {
2728
createStatsCollector = require('mocha/lib/stats-collector');
2829
mocha6plus = true;
2930
}

cypress-multi-reporters/package.json

+8-7
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,19 @@
3333
"homepage": "https://github.com/YOU54F/cypress-plugins/tree/master/cypress-multi-reporters",
3434
"license": "MIT",
3535
"dependencies": {
36-
"debug": "^4.3.7",
37-
"lodash": "^4.17.21"
36+
"debug": "^4.4.0",
37+
"lodash": "^4.17.21",
38+
"semver": "^7.6.3"
3839
},
3940
"devDependencies": {
40-
"@commitlint/cli": "19.5.0",
41-
"@commitlint/config-conventional": "19.5.0",
41+
"@commitlint/cli": "19.6.1",
42+
"@commitlint/config-conventional": "19.6.0",
4243
"chai": "5.1.2",
4344
"coveralls": "3.1.1",
44-
"eslint": "9.13.0",
45+
"eslint": "9.19.0",
4546
"eslint-config-defaults": "9.0.0",
46-
"husky": "9.1.6",
47-
"mocha": "8.4.0",
47+
"husky": "9.1.7",
48+
"mocha": "11.1.0",
4849
"mocha-lcov-reporter": "1.3.0",
4950
"nyc": "17.1.0",
5051
"sinon": "19.0.2",

0 commit comments

Comments
 (0)