Skip to content

Commit 7bc25b8

Browse files
authored
Include console.error messages when showWarnings is enabled (#26)
1 parent e884612 commit 7bc25b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SilentReporter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class SilentReporter {
5353
this.stdio.log('\n' + testResult.failureMessage);
5454
if (testResult.console && this.showWarnings) {
5555
testResult.console
56-
.filter(entry => entry.type === 'warn' && entry.message)
56+
.filter(entry => ['error', 'warn'].includes(entry.type) && entry.message)
5757
.map(entry => entry.message)
5858
.forEach(this.stdio.log);
5959
}

0 commit comments

Comments
 (0)