File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313 strategy :
1414 fail-fast : false
1515 matrix :
16- node : [10, 12, 14]
16+ node : [10, 12, 14, 20 ]
1717 os : [ubuntu-latest, windows-latest]
1818
1919 steps :
Original file line number Diff line number Diff line change @@ -182,6 +182,8 @@ exports['util.spawn'] = {
182182 var win32 = process . platform === 'win32' ;
183183 util . spawn ( {
184184 cmd : 'test\\fixtures\\exec' + ( win32 ? '.cmd' : '.sh' ) ,
185+ // Fix Node.js 18+ on Windows, https://github.com/nodejs/node/issues/52554
186+ opts : { shell : true }
185187 } , function ( err , result , code ) {
186188 test . equals ( err , null ) ;
187189 test . equals ( code , 0 ) ;
@@ -197,7 +199,11 @@ exports['util.spawn'] = {
197199 var win32 = process . platform === 'win32' ;
198200 util . spawn ( {
199201 cmd : './exec' + ( win32 ? '.cmd' : '.sh' ) ,
200- opts : { cwd : 'test/fixtures' } ,
202+ opts : {
203+ cwd : 'test/fixtures' ,
204+ // Fix Node.js 18+ on Windows, https://github.com/nodejs/node/issues/52554
205+ shell : true
206+ } ,
201207 } , function ( err , result , code ) {
202208 test . equals ( err , null ) ;
203209 test . equals ( code , 0 ) ;
You can’t perform that action at this time.
0 commit comments