Skip to content

Commit 7c48c4c

Browse files
authored
refactor(jest-reporters): remove useless conditional (#13564)
1 parent bb28e79 commit 7c48c4c

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

packages/jest-reporters/src/SummaryReporter.ts

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -106,22 +106,20 @@ export default class SummaryReporter extends BaseReporter {
106106
this._globalConfig,
107107
);
108108

109-
if (numTotalTestSuites) {
110-
let message = getSummary(aggregatedResults, {
111-
estimatedTime: this._estimatedTime,
112-
seed: this._globalConfig.seed,
113-
showSeed: this._globalConfig.showSeed,
114-
});
115-
116-
if (!this._globalConfig.silent) {
117-
message += `\n${
118-
wasInterrupted
119-
? chalk.bold.red('Test run was interrupted.')
120-
: this._getTestSummary(testContexts, this._globalConfig)
121-
}`;
122-
}
123-
this.log(message);
109+
let message = getSummary(aggregatedResults, {
110+
estimatedTime: this._estimatedTime,
111+
seed: this._globalConfig.seed,
112+
showSeed: this._globalConfig.showSeed,
113+
});
114+
115+
if (!this._globalConfig.silent) {
116+
message += `\n${
117+
wasInterrupted
118+
? chalk.bold.red('Test run was interrupted.')
119+
: this._getTestSummary(testContexts, this._globalConfig)
120+
}`;
124121
}
122+
this.log(message);
125123
}
126124
}
127125

0 commit comments

Comments
 (0)