File tree Expand file tree Collapse file tree 3 files changed +274
-202
lines changed Expand file tree Collapse file tree 3 files changed +274
-202
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ const util = require('util');
1313const mocha = require ( 'mocha' ) ;
1414const { Base} = mocha . reporters ;
1515const path = require ( 'path' ) ;
16+ const semver = require ( 'semver' ) ;
1617
1718let createStatsCollector ;
1819let mocha6plus ;
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 }
Original file line number Diff line number Diff line change 3434 "license" : " MIT" ,
3535 "dependencies" : {
3636 "debug" : " ^4.3.7" ,
37- "lodash" : " ^4.17.21"
37+ "lodash" : " ^4.17.21" ,
38+ "semver" : " ^7.5.4"
3839 },
3940 "devDependencies" : {
4041 "@commitlint/cli" : " 19.5.0" ,
4445 "eslint" : " 9.13.0" ,
4546 "eslint-config-defaults" : " 9.0.0" ,
4647 "husky" : " 9.1.6" ,
47- "mocha" : " 8.4 .0" ,
48+ "mocha" : " 11.1 .0" ,
4849 "mocha-lcov-reporter" : " 1.3.0" ,
4950 "nyc" : " 17.1.0" ,
5051 "sinon" : " 19.0.2" ,
You can’t perform that action at this time.
0 commit comments