File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
packages/playwright/src/reporters Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ class MarkdownReporter implements Reporter {
7979 if ( this . _options . shardDurationThreshold && result . shards ) {
8080 for ( const shard of result . shards ) {
8181 if ( shard . duration > this . _options . shardDurationThreshold ) {
82- const shardLabel = shard . shardIndex ? `Shard ${ shard . shardIndex } ` : 'Shard' ;
82+ const shardLabel = shard . shardIndex !== undefined ? `Shard ${ shard . shardIndex } ` : 'Shard' ;
8383 const durationMins = Math . round ( shard . duration / 60000 ) ;
8484 const thresholdMins = Math . round ( this . _options . shardDurationThreshold / 60000 ) ;
8585 lines . push ( `:warning: **Warning: ${ shardLabel } took ${ durationMins } minutes, exceeding the ${ thresholdMins } minute threshold.**` ) ;
You can’t perform that action at this time.
0 commit comments