NO_COLOR=1
doesn't turn off intercepted console logging color
#4965
Labels
p1-chore
Doesn't change code behavior (priority)
Describe the bug
Test file:
Output:
Reveal screenshot
This is probably because of forced
colorMode
for the customConsole
instance. Since this is node runtime only feature, I think it might be natural to do the same color detection as other places (like reporters) so thatNO_COLOR
would be also taken into account.vitest/packages/vitest/src/runtime/console.ts
Lines 128 to 133 in b561c32
Reproduction
https://stackblitz.com/edit/vitest-dev-vitest-gvgl5a?file=test%2Frepro.test.ts
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: