Skip to content

Commit 2ac841c

Browse files
test_runner: extend reporterColorMap for levels
Enhanced to include colors for the following diagnostic levels: : blue - info : yellow - warn : red - error Refs: #55922
1 parent c618874 commit 2ac841c

File tree

1 file changed

+12
-0
lines changed
  • lib/internal/test_runner/reporter

1 file changed

+12
-0
lines changed

lib/internal/test_runner/reporter/utils.js

+12
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,18 @@ const reporterColorMap = {
3737
get 'test:diagnostic'() {
3838
return colors.blue;
3939
},
40+
get 'info'() {
41+
return colors.blue;
42+
},
43+
get 'debug'() {
44+
return colors.gray;
45+
},
46+
get 'warn'() {
47+
return colors.yellow;
48+
},
49+
get 'error'() {
50+
return colors.red;
51+
},
4052
};
4153

4254
function indent(nesting) {

0 commit comments

Comments
 (0)