File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ export default class RunStatus extends Emittery {
38
38
timeouts : 0 ,
39
39
todoTests : 0 ,
40
40
uncaughtExceptions : 0 ,
41
+ unexpectedProcessExits : 0 ,
41
42
unhandledRejections : 0 ,
42
43
} ;
43
44
}
@@ -56,6 +57,7 @@ export default class RunStatus extends Emittery {
56
57
skippedTests : 0 ,
57
58
todoTests : 0 ,
58
59
uncaughtExceptions : 0 ,
60
+ unexpectedProcessExits : 0 ,
59
61
unhandledRejections : 0 ,
60
62
...stats ,
61
63
} ) ;
@@ -167,6 +169,8 @@ export default class RunStatus extends Emittery {
167
169
}
168
170
169
171
case 'process-exit' : {
172
+ stats . unexpectedProcessExits ++ ;
173
+ fileStats . unexpectedProcessExits ++ ;
170
174
event . pendingTests = this . pendingTests ;
171
175
event . pendingTestsLogs = this . pendingTestsLogs ;
172
176
this . pendingTests = new Map ( ) ;
@@ -237,6 +241,7 @@ export default class RunStatus extends Emittery {
237
241
|| this . stats . sharedWorkerErrors > 0
238
242
|| this . stats . timeouts > 0
239
243
|| this . stats . uncaughtExceptions > 0
244
+ || this . stats . unexpectedProcessExits > 0
240
245
|| this . stats . unhandledRejections > 0
241
246
) {
242
247
return 1 ;
You can’t perform that action at this time.
0 commit comments