Skip to content

Commit

Permalink
fix: make output less verbose (#668)
Browse files Browse the repository at this point in the history
  • Loading branch information
wellwelwel committed Aug 11, 2024
1 parent a0fb0c4 commit 9623aee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/services/format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export const getLargestStringLength = (arr: string[]): number =>
export const showTestResults = () => {
Write.hr();

if (fileResults.success.size > 0) {
if (fileResults.success.size > 0 && fileResults.fail.size === 0) {
Write.log(
Array.from(fileResults.success)
.map(
Expand All @@ -111,6 +111,8 @@ export const showTestResults = () => {
)
.join('\n')
);

return;
}

if (fileResults.fail.size > 0) {
Expand Down

0 comments on commit 9623aee

Please sign in to comment.