File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -668,8 +668,8 @@ export default class Reporter {
668668 this . lineWriter . writeLine ( colors . error ( `${ this . stats . uncaughtExceptions } uncaught ${ plur ( 'exception' , this . stats . uncaughtExceptions ) } ` ) ) ;
669669 }
670670
671- if ( this . stats . timeouts > 0 ) {
672- this . lineWriter . writeLine ( colors . error ( `${ this . stats . timeouts } ${ plur ( 'test' , this . stats . timeouts ) } remained pending after a timeout` ) ) ;
671+ if ( this . stats . timedOutTests > 0 ) {
672+ this . lineWriter . writeLine ( colors . error ( `${ this . stats . timedOutTests } ${ plur ( 'test' , this . stats . timedOutTests ) } remained pending after a timeout` ) ) ;
673673 }
674674
675675 if ( this . previousFailures > 0 ) {
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ export default class RunStatus extends Emittery {
3333 selectedTests : 0 ,
3434 sharedWorkerErrors : 0 ,
3535 skippedTests : 0 ,
36+ timedOutTests : 0 ,
3637 timeouts : 0 ,
3738 todoTests : 0 ,
3839 uncaughtExceptions : 0 ,
@@ -124,10 +125,11 @@ export default class RunStatus extends Emittery {
124125 this . removePendingTest ( event ) ;
125126 break ;
126127 case 'timeout' :
128+ stats . timeouts ++ ;
127129 event . pendingTests = this . pendingTests ;
128130 this . pendingTests = new Map ( ) ;
129131 for ( const testsInFile of event . pendingTests . values ( ) ) {
130- stats . timeouts += testsInFile . size ;
132+ stats . timedOutTests += testsInFile . size ;
131133 }
132134
133135 break ;
You can’t perform that action at this time.
0 commit comments