Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
Signed-off-by: Matteo Collina <hello@matteocollina.com>
  • Loading branch information
mcollina committed Jan 30, 2024
1 parent a52619c commit d98d429
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions lib/reporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,17 @@ export class MarkdownReporter extends Transform {
this.push('# Summary\n')
for (const [path, file] of Object.entries(this._files)) {
this.push(`## ${path}\n`)
this.push('### Pass\n')
for (const event of file.pass) {
this.push(eventToLine(event))
if (file.pass.length > 0) {
this.push('### :white_check_mark: Pass\n')
for (const event of file.pass) {
this.push(eventToLine(event))
}
}
this.push('### Fail\n')
for (const event of file.fail) {
this.push(eventToLine(event))
if (file.fail.length > 0) {
this.push('### :x: Fail\n')
for (const event of file.fail) {
this.push(eventToLine(event))
}
}
}
this.push(null)
Expand Down

0 comments on commit d98d429

Please sign in to comment.