mirror of
https://github.com/zebrajr/node.git
synced 2025-12-06 00:20:08 +01:00
PR-URL: https://github.com/nodejs/node/pull/60330 Refs: https://github.com/nodejs/node/issues/55390 Reviewed-By: Chemi Atlow <chemi@atlow.co.il> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Pietro Marchini <pietro.marchini94@gmail.com>
28 lines
847 B
JavaScript
28 lines
847 B
JavaScript
// Test that the output of test-runner/output/arbitrary-output-colored.js matches
|
|
// test-runner/output/arbitrary-output-colored.snapshot
|
|
import * as common from '../common/index.mjs';
|
|
import * as fixtures from '../common/fixtures.mjs';
|
|
import {
|
|
spawnAndAssert,
|
|
specTransform,
|
|
replaceTestDuration,
|
|
transform,
|
|
ensureCwdIsProjectRoot,
|
|
} from '../common/assertSnapshot.js';
|
|
|
|
const skipForceColors =
|
|
process.config.variables.icu_gyp_path !== 'tools/icu/icu-generic.gyp' ||
|
|
process.config.variables.node_shared_openssl;
|
|
|
|
if (skipForceColors) {
|
|
// https://github.com/nodejs/node/pull/48057
|
|
common.skip('Forced colors not supported in this build');
|
|
}
|
|
|
|
ensureCwdIsProjectRoot();
|
|
await spawnAndAssert(
|
|
fixtures.path('test-runner/output/arbitrary-output-colored.js'),
|
|
transform(specTransform, replaceTestDuration),
|
|
{ tty: true },
|
|
);
|