Skip to content

Commit

Permalink
test_runner: extend reporterColorMap for diagnostic levels
Browse files Browse the repository at this point in the history
Enhanced  to include colors for the following
diagnostic levels:
 : blue
 : gray
 : yellow
 : red

Ensures consistency in color-coding across the reporter.

Refs: nodejs#55922
  • Loading branch information
hpatel292-seneca committed Nov 23, 2024
1 parent a505925 commit 6b682ae
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/internal/test_runner/reporter/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,18 @@ const reporterColorMap = {
get 'test:diagnostic'() {
return colors.blue;
},
get 'info'() {
return colors.blue;
},
get 'debug'() {
return colors.gray;
},
get 'warn'() {
return colors.yellow;
},
get 'error'() {
return colors.red;
},
};

function indent(nesting) {
Expand Down

0 comments on commit 6b682ae

Please sign in to comment.