Skip to content

Commit abfef8e

Browse files
authored
Remove logs from test failure summary
1 parent e387cba commit abfef8e

File tree

5 files changed

+2
-17
lines changed

5 files changed

+2
-17
lines changed

lib/reporters/default.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,8 @@ export default class Reporter {
515515

516516
writeFailure(event) {
517517
this.lineWriter.writeLine(colors.title(this.prefixTitle(event.testFile, event.title)));
518-
if (!this.writeLogs(event, true)) {
518+
519+
if (!event.logs || event.logs.length === 0) {
519520
this.lineWriter.writeLine();
520521
}
521522

test-tap/reporters/default.regular.v12.log

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,10 +204,6 @@
204204

205205

206206
test › logs
207-
208-
ℹ hello
209-
ℹ world
210-
211207
test.cjs:18
212208

213209
17: t.log('world');

test-tap/reporters/default.regular.v14.log

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,10 +204,6 @@
204204

205205

206206
test › logs
207-
208-
ℹ hello
209-
ℹ world
210-
211207
test.cjs:18
212208

213209
17: t.log('world');

test-tap/reporters/default.regular.v16.log

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,10 +204,6 @@
204204

205205

206206
test › logs
207-
208-
ℹ hello
209-
ℹ world
210-
211207
test.cjs:18
212208

213209
17: t.log('world');

test-tap/reporters/default.regular.v17.log

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,10 +204,6 @@
204204

205205

206206
test › logs
207-
208-
ℹ hello
209-
ℹ world
210-
211207
test.cjs:18
212208

213209
17: t.log('world');

0 commit comments

Comments
 (0)