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 committed 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
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.