Skip to content

Commit

Permalink
refactor(jest-reporters): remove useless conditional (#13564)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Nov 6, 2022
1 parent bb28e79 commit 7c48c4c
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions packages/jest-reporters/src/SummaryReporter.ts
Expand Up @@ -106,22 +106,20 @@ export default class SummaryReporter extends BaseReporter {
this._globalConfig,
);

if (numTotalTestSuites) {
let message = getSummary(aggregatedResults, {
estimatedTime: this._estimatedTime,
seed: this._globalConfig.seed,
showSeed: this._globalConfig.showSeed,
});

if (!this._globalConfig.silent) {
message += `\n${
wasInterrupted
? chalk.bold.red('Test run was interrupted.')
: this._getTestSummary(testContexts, this._globalConfig)
}`;
}
this.log(message);
let message = getSummary(aggregatedResults, {
estimatedTime: this._estimatedTime,
seed: this._globalConfig.seed,
showSeed: this._globalConfig.showSeed,
});

if (!this._globalConfig.silent) {
message += `\n${
wasInterrupted
? chalk.bold.red('Test run was interrupted.')
: this._getTestSummary(testContexts, this._globalConfig)
}`;
}
this.log(message);
}
}

Expand Down

0 comments on commit 7c48c4c

Please sign in to comment.