Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion test/unit/ci_preflight_cli.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,15 @@ function run(t, command, responses, credentials = {
`;
const result = spawnSync(process.execPath, ['--input-type=module', '--eval', script], {
cwd: dir,
env: { ...process.env, XDG_CONFIG_HOME: dir, NCU_VERBOSITY: 'NONE' },
env: {
...process.env,
XDG_CONFIG_HOME: dir,
NCU_VERBOSITY: 'NONE',
// The node:test harness may run the test process with FORCE_COLOR;
// it needs to be stripped when spawning child processes, otherwise
// stdout/stderr will contain ANSI color codes and the assertions fail.
FORCE_COLOR: undefined,
},
encoding: 'utf8',
timeout: 10000
});
Expand Down