@@ -89,8 +89,8 @@ const run = (args: string, ctrlcWrapper?: boolean) => {
8989 /** The signal by which the child process was terminated. */
9090 signal : exit [ 1 ] ,
9191 } ;
92- } )
93- )
92+ } ) ,
93+ ) ,
9494 ) ;
9595
9696 const getLogLines = async ( ) : Promise < string [ ] > => {
@@ -197,9 +197,9 @@ describe('exiting conditions', () => {
197197 // TODO: Flappy value due to race condition, sometimes killed by concurrently (exit code 1),
198198 // sometimes terminated on its own (exit code 0).
199199 // Related issue: https://github.com/open-cli-tools/concurrently/issues/283
200- isWindows ? '(3221225786|0|1)' : 'SIGINT'
201- )
202- )
200+ isWindows ? '(3221225786|0|1)' : 'SIGINT' ,
201+ ) ,
202+ ) ,
203203 ) ;
204204 } ) ;
205205} ) ;
@@ -233,7 +233,7 @@ describe('--hide', () => {
233233describe ( '--group' , ( ) => {
234234 it ( 'groups output per process' , async ( ) => {
235235 const lines = await run (
236- '--group "echo foo && node fixtures/sleep.mjs 1 && echo bar" "echo baz"'
236+ '--group "echo foo && node fixtures/sleep.mjs 1 && echo bar" "echo baz"' ,
237237 ) . getLogLines ( ) ;
238238
239239 expect ( lines . slice ( 0 , 4 ) ) . toEqual ( [
@@ -257,7 +257,7 @@ describe('--names', () => {
257257
258258 it ( 'is split using --name-separator arg' , async ( ) => {
259259 const lines = await run (
260- '--names "foo|bar" --name-separator "|" "echo foo" "echo bar"'
260+ '--names "foo|bar" --name-separator "|" "echo foo" "echo bar"' ,
261261 ) . getLogLines ( ) ;
262262
263263 expect ( lines ) . toContainEqual ( expect . stringContaining ( '[foo] foo' ) ) ;
@@ -302,50 +302,50 @@ describe('--kill-others', () => {
302302
303303 expect ( lines ) . toContainEqual ( expect . stringContaining ( '[1] exit 0 exited with code 0' ) ) ;
304304 expect ( lines ) . toContainEqual (
305- expect . stringContaining ( 'Sending SIGTERM to other processes' )
305+ expect . stringContaining ( 'Sending SIGTERM to other processes' ) ,
306306 ) ;
307307 expect ( lines ) . toContainEqual (
308308 expect . stringMatching (
309- createKillMessage ( '[0] node fixtures/sleep.mjs 10' , 'SIGTERM' )
310- )
309+ createKillMessage ( '[0] node fixtures/sleep.mjs 10' , 'SIGTERM' ) ,
310+ ) ,
311311 ) ;
312312 } ) ;
313313 } ) ;
314314
315315 it ( 'kills on failure' , async ( ) => {
316316 const lines = await run (
317- '--kill-others "node fixtures/sleep.mjs 10" "exit 1"'
317+ '--kill-others "node fixtures/sleep.mjs 10" "exit 1"' ,
318318 ) . getLogLines ( ) ;
319319
320320 expect ( lines ) . toContainEqual ( expect . stringContaining ( '[1] exit 1 exited with code 1' ) ) ;
321321 expect ( lines ) . toContainEqual ( expect . stringContaining ( 'Sending SIGTERM to other processes' ) ) ;
322322 expect ( lines ) . toContainEqual (
323- expect . stringMatching ( createKillMessage ( '[0] node fixtures/sleep.mjs 10' , 'SIGTERM' ) )
323+ expect . stringMatching ( createKillMessage ( '[0] node fixtures/sleep.mjs 10' , 'SIGTERM' ) ) ,
324324 ) ;
325325 } ) ;
326326} ) ;
327327
328328describe ( '--kill-others-on-fail' , ( ) => {
329329 it ( 'does not kill on success' , async ( ) => {
330330 const lines = await run (
331- '--kill-others-on-fail "node fixtures/sleep.mjs 0.5" "exit 0"'
331+ '--kill-others-on-fail "node fixtures/sleep.mjs 0.5" "exit 0"' ,
332332 ) . getLogLines ( ) ;
333333
334334 expect ( lines ) . toContainEqual ( expect . stringContaining ( '[1] exit 0 exited with code 0' ) ) ;
335335 expect ( lines ) . toContainEqual (
336- expect . stringContaining ( '[0] node fixtures/sleep.mjs 0.5 exited with code 0' )
336+ expect . stringContaining ( '[0] node fixtures/sleep.mjs 0.5 exited with code 0' ) ,
337337 ) ;
338338 } ) ;
339339
340340 it ( 'kills on failure' , async ( ) => {
341341 const lines = await run (
342- '--kill-others-on-fail "node fixtures/sleep.mjs 10" "exit 1"'
342+ '--kill-others-on-fail "node fixtures/sleep.mjs 10" "exit 1"' ,
343343 ) . getLogLines ( ) ;
344344
345345 expect ( lines ) . toContainEqual ( expect . stringContaining ( '[1] exit 1 exited with code 1' ) ) ;
346346 expect ( lines ) . toContainEqual ( expect . stringContaining ( 'Sending SIGTERM to other processes' ) ) ;
347347 expect ( lines ) . toContainEqual (
348- expect . stringMatching ( createKillMessage ( '[0] node fixtures/sleep.mjs 10' , 'SIGTERM' ) )
348+ expect . stringMatching ( createKillMessage ( '[0] node fixtures/sleep.mjs 10' , 'SIGTERM' ) ) ,
349349 ) ;
350350 } ) ;
351351} ) ;
@@ -365,14 +365,14 @@ describe('--handle-input', () => {
365365 expect ( exit . code ) . toBe ( 0 ) ;
366366 expect ( lines ) . toContainEqual ( expect . stringContaining ( '[0] stop' ) ) ;
367367 expect ( lines ) . toContainEqual (
368- expect . stringContaining ( '[0] node fixtures/read-echo.js exited with code 0' )
368+ expect . stringContaining ( '[0] node fixtures/read-echo.js exited with code 0' ) ,
369369 ) ;
370370 } ) ;
371371 } ) ;
372372
373373 it ( 'forwards input to process --default-input-target' , async ( ) => {
374374 const child = run (
375- '-ki --default-input-target 1 "node fixtures/read-echo.js" "node fixtures/read-echo.js"'
375+ '-ki --default-input-target 1 "node fixtures/read-echo.js" "node fixtures/read-echo.js"' ,
376376 ) ;
377377 child . log . subscribe ( ( line ) => {
378378 if ( / \[ 1 \] R E A D I N G / . test ( line ) ) {
@@ -385,7 +385,7 @@ describe('--handle-input', () => {
385385 expect ( exit . code ) . toBeGreaterThan ( 0 ) ;
386386 expect ( lines ) . toContainEqual ( expect . stringContaining ( '[1] stop' ) ) ;
387387 expect ( lines ) . toContainEqual (
388- expect . stringMatching ( createKillMessage ( '[0] node fixtures/read-echo.js' , 'SIGTERM' ) )
388+ expect . stringMatching ( createKillMessage ( '[0] node fixtures/read-echo.js' , 'SIGTERM' ) ) ,
389389 ) ;
390390 } ) ;
391391
@@ -402,7 +402,7 @@ describe('--handle-input', () => {
402402 expect ( exit . code ) . toBeGreaterThan ( 0 ) ;
403403 expect ( lines ) . toContainEqual ( expect . stringContaining ( '[1] stop' ) ) ;
404404 expect ( lines ) . toContainEqual (
405- expect . stringMatching ( createKillMessage ( '[0] node fixtures/read-echo.js' , 'SIGTERM' ) )
405+ expect . stringMatching ( createKillMessage ( '[0] node fixtures/read-echo.js' , 'SIGTERM' ) ) ,
406406 ) ;
407407 } ) ;
408408} ) ;
@@ -411,12 +411,12 @@ describe('--timings', () => {
411411 const defaultTimestampFormatRegex = / \d { 4 } - \d { 2 } - \d { 2 } \d { 2 } : \d { 2 } : \d { 2 } .\d { 3 } / ;
412412 const processStartedMessageRegex = ( index : number , command : string ) => {
413413 return new RegExp (
414- `^\\[${ index } ] ${ command } started at ${ defaultTimestampFormatRegex . source } $`
414+ `^\\[${ index } ] ${ command } started at ${ defaultTimestampFormatRegex . source } $` ,
415415 ) ;
416416 } ;
417417 const processStoppedMessageRegex = ( index : number , command : string ) => {
418418 return new RegExp (
419- `^\\[${ index } ] ${ command } stopped at ${ defaultTimestampFormatRegex . source } after (\\d|,)+ms$`
419+ `^\\[${ index } ] ${ command } stopped at ${ defaultTimestampFormatRegex . source } after (\\d|,)+ms$` ,
420420 ) ;
421421 } ;
422422
@@ -430,17 +430,17 @@ describe('--timings', () => {
430430 } ;
431431 it . each ( Object . entries ( timingsTests ) ) ( '%s' , async ( _ , commands ) => {
432432 const lines = await run (
433- `--timings ${ commands . map ( ( command ) => `"${ command } "` ) . join ( ' ' ) } `
433+ `--timings ${ commands . map ( ( command ) => `"${ command } "` ) . join ( ' ' ) } ` ,
434434 ) . getLogLines ( ) ;
435435
436436 // Expect output to contain process start / stop messages for each command
437437 commands . forEach ( ( command , index ) => {
438438 const escapedCommand = escapeRegExp ( command ) ;
439439 expect ( lines ) . toContainEqual (
440- expect . stringMatching ( processStartedMessageRegex ( index , escapedCommand ) )
440+ expect . stringMatching ( processStartedMessageRegex ( index , escapedCommand ) ) ,
441441 ) ;
442442 expect ( lines ) . toContainEqual (
443- expect . stringMatching ( processStoppedMessageRegex ( index , escapedCommand ) )
443+ expect . stringMatching ( processStoppedMessageRegex ( index , escapedCommand ) ) ,
444444 ) ;
445445 } ) ;
446446
0 commit comments