@@ -31,18 +31,18 @@ describe('integration tests', function () {
31
31
} ) ;
32
32
33
33
//console.log('command-ts with test: Running npm install');
34
- const res = await doSpawn ( npmCommand , [ 'i' ] , { cwd : runResult . env . cwd } ) ;
34
+ const res = await doSpawn ( npmCommand , [ 'i' ] , { cwd : runResult . env . cwd , shell : true } ) ;
35
35
if ( res . exitCode !== 0 ) {
36
36
assert . fail ( `npm installed failed: stdout ${ res . stdout } stderr ${ res . stderr } ` ) ;
37
37
}
38
38
39
- const resAudit = await doSpawn ( npmCommand , [ 'audit' ] , { cwd : runResult . env . cwd } ) ;
39
+ const resAudit = await doSpawn ( npmCommand , [ 'audit' ] , { cwd : runResult . env . cwd , shell : true } ) ;
40
40
if ( resAudit . exitCode !== 0 ) {
41
41
assert . fail ( `npm audit failed: stdout ${ resAudit . stdout } stderr ${ resAudit . stderr } ` ) ;
42
42
}
43
43
44
44
//console.log('command-ts with test: Running extension compile');
45
- const res2 = await doSpawn ( npmCommand , [ 'run' , 'test' ] , { cwd : runResult . env . cwd } ) ;
45
+ const res2 = await doSpawn ( npmCommand , [ 'run' , 'test' ] , { cwd : runResult . env . cwd , shell : true } ) ;
46
46
if ( res2 . exitCode !== 0 ) {
47
47
assert . fail ( `npm run test failed: stdout ${ res2 . stdout } stderr ${ res2 . stderr } ` ) ;
48
48
}
@@ -64,18 +64,18 @@ describe('integration tests', function () {
64
64
openWith : 'skip'
65
65
} ) ;
66
66
67
- const res = await doSpawn ( npmCommand , [ 'i' ] , { cwd : runResult . env . cwd } ) ;
67
+ const res = await doSpawn ( npmCommand , [ 'i' ] , { cwd : runResult . env . cwd , shell : true } ) ;
68
68
if ( res . exitCode !== 0 ) {
69
69
assert . fail ( `npm installed failed: stdout ${ res . stdout } stderr ${ res . stderr } ` ) ;
70
70
}
71
71
72
- const resAudit = await doSpawn ( npmCommand , [ 'audit' ] , { cwd : runResult . env . cwd } ) ;
72
+ const resAudit = await doSpawn ( npmCommand , [ 'audit' ] , { cwd : runResult . env . cwd , shell : true } ) ;
73
73
if ( resAudit . exitCode !== 0 ) {
74
74
assert . fail ( `npm audit failed: stdout ${ resAudit . stdout } stderr ${ resAudit . stderr } ` ) ;
75
75
}
76
76
77
77
//console.log('command-ts-webpack with test: Running extension compile');
78
- const res2 = await doSpawn ( npmCommand , [ 'run' , 'test' ] , { cwd : runResult . env . cwd } ) ;
78
+ const res2 = await doSpawn ( npmCommand , [ 'run' , 'test' ] , { cwd : runResult . env . cwd , shell : true } ) ;
79
79
if ( res2 . exitCode !== 0 ) {
80
80
assert . fail ( `npm run compile failed: stdout ${ res2 . stdout } stderr ${ res2 . stderr } ` ) ;
81
81
}
@@ -96,18 +96,18 @@ describe('integration tests', function () {
96
96
openWith : 'skip'
97
97
} ) ;
98
98
99
- const res = await doSpawn ( npmCommand , [ 'i' ] , { cwd : runResult . env . cwd } ) ;
99
+ const res = await doSpawn ( npmCommand , [ 'i' ] , { cwd : runResult . env . cwd , shell : true } ) ;
100
100
if ( res . exitCode !== 0 ) {
101
101
assert . fail ( `npm installed failed: stdout ${ res . stdout } stderr ${ res . stderr } ` ) ;
102
102
}
103
103
104
- const resAudit = await doSpawn ( npmCommand , [ 'audit' ] , { cwd : runResult . env . cwd } ) ;
104
+ const resAudit = await doSpawn ( npmCommand , [ 'audit' ] , { cwd : runResult . env . cwd , shell : true } ) ;
105
105
if ( resAudit . exitCode !== 0 ) {
106
106
assert . fail ( `npm audit failed: stdout ${ resAudit . stdout } stderr ${ resAudit . stderr } ` ) ;
107
107
}
108
108
109
109
//console.log('command-ts-web with test: Running extension compile-web');
110
- const res2 = await doSpawn ( npmCommand , [ 'run' , 'test' ] , { cwd : runResult . env . cwd } ) ;
110
+ const res2 = await doSpawn ( npmCommand , [ 'run' , 'test' ] , { cwd : runResult . env . cwd , shell : true } ) ;
111
111
if ( res2 . exitCode !== 0 ) {
112
112
assert . fail ( `npm run test failed: stdout ${ res2 . stdout } stderr ${ res2 . stderr } ` ) ;
113
113
}
0 commit comments