Skip to content

Commit

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

Refs: nodejs#55922
  • Loading branch information
hpatel292-seneca committed Nov 24, 2024
1 parent c618874 commit 2ac841c
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 2ac841c

Please sign in to comment.