File tree 3 files changed +33
-29
lines changed
3 files changed +33
-29
lines changed Original file line number Diff line number Diff line change 15
15
"npmupdate" : " bin/update.js"
16
16
},
17
17
"scripts" : {
18
- "test" : " mocha -r thunk-mocha -r intelli-espower-loader - t 200000 test/*.test.js" ,
19
- "test-cov" : " istanbul cover --report none --print none node_modules/mocha/bin/_mocha -- -r thunk-mocha -r intelli-espower-loader - t 200000 test/*.test.js && istanbul report text-summary json lcov" ,
20
- "test-local" : " npm_china=true local=true mocha -r thunk-mocha -r intelli-espower-loader - t 200000 test/*.test.js" ,
18
+ "test" : " mocha -r thunk-mocha -t 200000 test/*.test.js" ,
19
+ "test-cov" : " istanbul cover --report none --print none node_modules/mocha/bin/_mocha -- -r thunk-mocha -t 200000 test/*.test.js && istanbul report text-summary json lcov" ,
20
+ "test-local" : " npm_china=true local=true mocha -r thunk-mocha -t 200000 test/*.test.js" ,
21
21
"lint" : " eslint . --fix" ,
22
22
"ci" : " npm run lint && npm run test-cov" ,
23
23
"autod" : " autod"
61
61
"eslint" : " 3" ,
62
62
"eslint-config-egg" : " 3" ,
63
63
"http-proxy" : " ^1.16.2" ,
64
- "intelli-espower-loader" : " 1" ,
65
64
"istanbul" : " *" ,
66
65
"mm" : " ^2.2.1" ,
67
66
"mocha" : " 3" ,
Original file line number Diff line number Diff line change 2
2
3
3
const path = require ( 'path' ) ;
4
4
const rimraf = require ( 'rimraf' ) ;
5
+ const semver = require ( 'semver' ) ;
5
6
const npminstall = require ( './npminstall' ) ;
6
7
7
- describe ( 'test/bigPackage.test.js' , ( ) => {
8
- function testcase ( name ) {
9
- describe ( name , ( ) => {
10
- const root = path . join ( __dirname , 'fixtures' , name ) ;
8
+ if ( semver . satisfies ( process . version , '>= 6.0.0' ) ) {
9
+ describe ( 'test/bigPackage.test.js' , ( ) => {
10
+ function testcase ( name ) {
11
+ describe ( name , ( ) => {
12
+ const root = path . join ( __dirname , 'fixtures' , name ) ;
11
13
12
- function cleanup ( ) {
13
- rimraf . sync ( path . join ( root , 'node_modules' ) ) ;
14
- }
14
+ function cleanup ( ) {
15
+ rimraf . sync ( path . join ( root , 'node_modules' ) ) ;
16
+ }
15
17
16
- beforeEach ( cleanup ) ;
17
- afterEach ( cleanup ) ;
18
+ beforeEach ( cleanup ) ;
19
+ afterEach ( cleanup ) ;
18
20
19
- it ( 'should install success' , function * ( ) {
20
- yield npminstall ( {
21
- root,
22
- trace : true ,
21
+ it ( 'should install success' , function * ( ) {
22
+ yield npminstall ( {
23
+ root,
24
+ trace : true ,
25
+ } ) ;
23
26
} ) ;
24
27
} ) ;
25
- } ) ;
26
- }
28
+ }
29
+
30
+ if ( process . platform !== 'win32' ) {
31
+ [
32
+ 'spmtest' ,
33
+ 'spmwebpacktest' ,
34
+ ] . forEach ( testcase ) ;
35
+ }
27
36
28
- if ( process . platform !== 'win32' ) {
29
37
[
30
- 'spmtest' ,
31
- 'spmwebpacktest' ,
38
+ 'standardtest' ,
32
39
] . forEach ( testcase ) ;
33
- }
34
-
35
- [
36
- 'standardtest' ,
37
- ] . forEach ( testcase ) ;
38
- } ) ;
40
+ } ) ;
41
+ }
Original file line number Diff line number Diff line change @@ -8,7 +8,9 @@ const helper = require('./helper');
8
8
const npminstall = require ( './npminstall' ) ;
9
9
10
10
describe ( 'test/installScopeRegistry.test.js' , ( ) => {
11
- const [ tmp , cleanup ] = helper . tmp ( ) ;
11
+ const items = helper . tmp ( ) ;
12
+ const tmp = items [ 0 ] ;
13
+ const cleanup = items [ 1 ] ;
12
14
let mockCnpmrc ;
13
15
14
16
before ( ( ) => {
You can’t perform that action at this time.
0 commit comments