Skip to content

Commit 8bb232f

Browse files
shobhitchittoratargos
authored andcommitted
doc: adds NO_COLOR to assert doc page
Co-Authored-By: Vse Mozhet Byt <[email protected]> PR-URL: #30483 Refs: #30484 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Denys Otrishko <[email protected]>
1 parent 2960ef1 commit 8bb232f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

doc/api/assert.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,13 @@ assert.deepEqual([[[1, 2, 3]], 4, 5], [[[1, 2, '3']], 4, 5]);
114114
// ]
115115
```
116116

117-
To deactivate the colors, use the `NODE_DISABLE_COLORS` environment variable.
117+
To deactivate the colors, use the `NO_COLOR` or
118+
`NODE_DISABLE_COLORS` environment variable.
118119
This will also deactivate the colors in the REPL.
119120

121+
For more on the color support in terminal environments, read
122+
the tty [getColorDepth()](tty.html#tty_writestream_getcolordepth_env) doc.
123+
120124
## Legacy mode
121125

122126
Legacy mode uses the [Abstract Equality Comparison][] in:

0 commit comments

Comments
 (0)