Skip to content

Commit

Permalink
doc: clarify diagnostic behavior in API docs
Browse files Browse the repository at this point in the history
Updated the description of the  parameter to note
that color output is specific to the spec reporter. This
helps users understand its behavior and create custom
reporters with accurate expectations.

Fixes: nodejs#55922
  • Loading branch information
hpatel292-seneca committed Nov 28, 2024
1 parent 4048621 commit 33b961d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -2944,7 +2944,7 @@ defined. The corresponding declaration ordered event is `'test:start'`.
`undefined` if the test was run through the REPL.
* `message` {string} The diagnostic message.
* `nesting` {number} The nesting level of the test.
* `level` {string} The severity level of the diagnostic message, which determines its output color in the reporter.
* `level` {string} The severity level of the diagnostic message.
Possible values are:
* `'info'`: Informational messages.
* `'warn'`: Warnings.
Expand Down

0 comments on commit 33b961d

Please sign in to comment.