Commit 18f9c50 1 parent 786ece7 commit 18f9c50 Copy full SHA for 18f9c50
File tree 3 files changed +274
-202
lines changed
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');
13
13
const mocha = require ( 'mocha' ) ;
14
14
const { Base} = mocha . reporters ;
15
15
const path = require ( 'path' ) ;
16
+ const semver = require ( 'semver' ) ;
16
17
17
18
let createStatsCollector ;
18
19
let mocha6plus ;
23
24
) ;
24
25
const { version} = json ;
25
26
// istanbul ignore else
26
- if ( version >= '6' ) {
27
+ if ( semver . gte ( version , '6.0.0' ) ) {
27
28
createStatsCollector = require ( 'mocha/lib/stats-collector' ) ;
28
29
mocha6plus = true ;
29
30
}
Original file line number Diff line number Diff line change 34
34
"license" : " MIT" ,
35
35
"dependencies" : {
36
36
"debug" : " ^4.3.7" ,
37
- "lodash" : " ^4.17.21"
37
+ "lodash" : " ^4.17.21" ,
38
+ "semver" : " ^7.5.4"
38
39
},
39
40
"devDependencies" : {
40
41
"@commitlint/cli" : " 19.5.0" ,
44
45
"eslint" : " 9.13.0" ,
45
46
"eslint-config-defaults" : " 9.0.0" ,
46
47
"husky" : " 9.1.6" ,
47
- "mocha" : " 8.4 .0" ,
48
+ "mocha" : " 11.1 .0" ,
48
49
"mocha-lcov-reporter" : " 1.3.0" ,
49
50
"nyc" : " 17.1.0" ,
50
51
"sinon" : " 19.0.2" ,
You can’t perform that action at this time.
0 commit comments