Skip to content

Commit

Permalink
Remove logs from test failure summary
Browse files Browse the repository at this point in the history
  • Loading branch information
il3ven authored May 16, 2022
1 parent e387cba commit abfef8e
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 17 deletions.
3 changes: 2 additions & 1 deletion lib/reporters/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,8 @@ export default class Reporter {

writeFailure(event) {
this.lineWriter.writeLine(colors.title(this.prefixTitle(event.testFile, event.title)));
if (!this.writeLogs(event, true)) {

if (!event.logs || event.logs.length === 0) {
this.lineWriter.writeLine();
}

Expand Down
4 changes: 0 additions & 4 deletions test-tap/reporters/default.regular.v12.log
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,6 @@


test › logs

ℹ hello
ℹ world

test.cjs:18

17: t.log('world');
Expand Down
4 changes: 0 additions & 4 deletions test-tap/reporters/default.regular.v14.log
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,6 @@


test › logs

ℹ hello
ℹ world

test.cjs:18

17: t.log('world');
Expand Down
4 changes: 0 additions & 4 deletions test-tap/reporters/default.regular.v16.log
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,6 @@


test › logs

ℹ hello
ℹ world

test.cjs:18

17: t.log('world');
Expand Down
4 changes: 0 additions & 4 deletions test-tap/reporters/default.regular.v17.log
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,6 @@


test › logs

ℹ hello
ℹ world

test.cjs:18

17: t.log('world');
Expand Down

0 comments on commit abfef8e

Please sign in to comment.