build: enable NODE_DEBUG=test by default for tests
By convention, require('util').debuglog('test')
can be used
within tests to separate debug output from console.log/error
statements that are actually a part of the test. These should
be enabled by default in most cases in CI.
Running make test-ci
or variants (e.g. test-ci-js
) will set
the NODE_DEBUG=test
option by default unless explicitly
overridden. vcbuild
will set NODE_DEBUG=test
automatically
unless the no-debug-test
option is set.
Refs: https://github.com/nodejs/node/issues/32678
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines