@@ -354,15 +354,11 @@ describe('Executable process tests', () => {
354354 test ( 'Executable.waitForExitAsync() handles multi-byte UTF-8 characters correctly' , async ( ) => {
355355 // Test that multi-byte characters are properly decoded even when split across chunks
356356 const executablePath : string = path . join ( executableFolder , 'multibyte' , 'output-multibyte.js' ) ;
357- const childProcess : child_process . ChildProcess = Executable . spawn (
358- process . argv0 ,
359- [ executablePath ] ,
360- {
361- environment,
362- currentWorkingDirectory : executableFolder ,
363- stdio : [ 'ignore' , 'pipe' , 'pipe' ]
364- }
365- ) ;
357+ const childProcess : child_process . ChildProcess = Executable . spawn ( process . argv0 , [ executablePath ] , {
358+ environment,
359+ currentWorkingDirectory : executableFolder ,
360+ stdio : [ 'ignore' , 'pipe' , 'pipe' ]
361+ } ) ;
366362
367363 const result : IWaitForExitResult < string > = await Executable . waitForExitAsync ( childProcess , {
368364 encoding : 'utf8'
@@ -371,7 +367,7 @@ describe('Executable process tests', () => {
371367 expect ( result . exitCode ) . toEqual ( 0 ) ;
372368 expect ( result . signal ) . toBeNull ( ) ;
373369 expect ( typeof result . stdout ) . toEqual ( 'string' ) ;
374-
370+
375371 // The output should contain properly decoded multi-byte characters
376372 // Chinese characters (世界) and emoji (🎉)
377373 expect ( result . stdout ) . toContain ( 'Hello, 世界! 🎉' ) ;
0 commit comments