Skip to content

Commit

Permalink
Include console.error messages when showWarnings is enabled (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
schinery authored Mar 10, 2021
1 parent e884612 commit 7bc25b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SilentReporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class SilentReporter {
this.stdio.log('\n' + testResult.failureMessage);
if (testResult.console && this.showWarnings) {
testResult.console
.filter(entry => entry.type === 'warn' && entry.message)
.filter(entry => ['error', 'warn'].includes(entry.type) && entry.message)
.map(entry => entry.message)
.forEach(this.stdio.log);
}
Expand Down

0 comments on commit 7bc25b8

Please sign in to comment.