2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -63,13 +63,16 @@ export function buildHandler(config, state) {
63
63
await config . cleanup ( ) ;
64
64
debug ( `Configured cleanup hook completed` ) ;
65
65
}
66
+ debug ( `\n\nExiting with code ${ exitCode } ` ) ;
66
67
// 1. We expect all cleanup to have happened after
67
68
// config.cleanup(), so exiting here should be safe.
68
69
// 2. We also want to forcibly exit with a success code in this
69
70
// case.
70
71
// eslint-disable-next-line n/no-process-exit
71
72
process . exit ( exitCode ) ;
72
73
}
74
+ } else {
75
+ console . log ( `Waiting for ${ state . expected - state . completed } more browsers to finish` ) ;
73
76
}
74
77
75
78
break ;
Original file line number Diff line number Diff line change 1
1
import chalk from 'chalk' ;
2
2
import fs from 'fs' ;
3
3
import path from 'path' ;
4
+ import { exit } from 'process' ;
4
5
5
6
const SLOW_TEST_COUNT = 50 ;
6
7
const DEFAULT_TIMEOUT = 8_000 ;
@@ -219,9 +220,10 @@ export default class CustomDotReporter {
219
220
) } ms\n${ HEADER_STR } \n\n`
220
221
) ;
221
222
223
+ const exitCode = this . globalFailures . length || this . failedTests . length ? 1 : 0 ;
222
224
this . clearState ( ) ;
223
225
224
- return this . globalFailures . length || this . failedTests . length ? 1 : 0 ;
226
+ return exitCode ;
225
227
}
226
228
227
229
addLauncher ( data ) {
0 commit comments