Skip to content
Merged
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
4 changes: 2 additions & 2 deletions test/parallel/test-runner-output.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ import { describe, it } from 'node:test';
import { hostname } from 'node:os';
import { chdir, cwd } from 'node:process';
import { fileURLToPath } from 'node:url';
import internalTTy from 'internal/tty';

const skipForceColors =
process.config.variables.icu_gyp_path !== 'tools/icu/icu-generic.gyp' ||
process.config.variables.node_shared_openssl;

const canColorize = internalTTy.getColorDepth() > 2;
// We're using dynamic import here to not break `NODE_REGENERATE_SNAPSHOTS`.
const canColorize = (await import('internal/tty')).default.getColorDepth() > 2;
const skipCoverageColors = !canColorize;

function replaceTestDuration(str) {
Expand Down
Loading