Skip to content

Commit

Permalink
refactor(formatter/markdown): Format fatal error count in bold
Browse files Browse the repository at this point in the history
  • Loading branch information
RandomByte committed Aug 21, 2024
1 parent 6df2ed3 commit ab3e72b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/formatter/markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export class Markdown {
`> ${totalErrorCount + totalWarningCount} problems ` +
`(${totalErrorCount} errors, ${totalWarningCount} warnings) \n`;
if (totalFatalErrorCount) {
summary += `> ${totalFatalErrorCount} fatal errors\n`;
summary += `> **${totalFatalErrorCount} fatal errors**\n`;
}

if (findings) {
Expand Down
4 changes: 2 additions & 2 deletions test/lib/formatter/snapshots/markdown.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Generated by [AVA](https://avajs.dev).
## Summary␊
> 7 problems (5 errors, 2 warnings) ␊
> 2 fatal errors␊
> **2 fatal errors**
## Findings␊
### webapp/Component.js␊
Expand Down Expand Up @@ -43,7 +43,7 @@ Generated by [AVA](https://avajs.dev).
## Summary␊
> 7 problems (5 errors, 2 warnings) ␊
> 2 fatal errors␊
> **2 fatal errors**
## Findings␊
### webapp/Component.js␊
Expand Down
Binary file modified test/lib/formatter/snapshots/markdown.ts.snap
Binary file not shown.

0 comments on commit ab3e72b

Please sign in to comment.