fix: maxFailures reached follow-up (#26717)
This commit is contained in:
parent
eb9ef64e7d
commit
1b30347ae5
|
|
@ -258,7 +258,9 @@ export class BaseReporter implements ReporterV2 {
|
||||||
}
|
}
|
||||||
|
|
||||||
private _printMaxFailuresReached() {
|
private _printMaxFailuresReached() {
|
||||||
if (this.config.maxFailures && this._failureCount < this.config.maxFailures)
|
if (!this.config.maxFailures)
|
||||||
|
return;
|
||||||
|
if (this._failureCount < this.config.maxFailures)
|
||||||
return;
|
return;
|
||||||
console.log(colors.yellow(`Testing stopped early after ${this.config.maxFailures} maximum allowed failures.`));
|
console.log(colors.yellow(`Testing stopped early after ${this.config.maxFailures} maximum allowed failures.`));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue