Skip to content

test: disable colors in test-assert.js

Rodrigo Muino Tomonari requested to merge github/fork/cjihrig/colors into master

When test/parallel/test-assert.js is run with a TTY as stdout, color codes in assertion messages cause the test to fail. This commit disables colors when stdout is a TTY.

Fixes: https://github.com/nodejs/node/issues/18967

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

Merge request reports

Loading