Skip to content

Commit

Permalink
test_runner: no skip diagnose on warning message
Browse files Browse the repository at this point in the history
test_runner: no skip diagnose on warning message
  • Loading branch information
MrJithil committed Dec 31, 2022
1 parent 4830a6c commit 947cee5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/internal/test_runner/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ class FileTest extends Test {
break;

case TokenKind.COMMENT:
if (nesting === 1) {
// Ignore file top level diagnostics
if (nesting === 1 && !node.comment.startsWith('Warning:')) {
// Ignore file top level diagnostics except the warning comment types
break;
}
this.reporter.diagnostic(nesting, node.comment);
Expand Down

0 comments on commit 947cee5

Please sign in to comment.