node/test/test-runner/test-output-lcov-reporter.mjs
Joyee Cheung bfcf2f7a15
test: put helper in test-runner-output into common
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>
2025-10-24 09:12:46 +00:00

15 lines
521 B
JavaScript

// Test that the output of test-runner/output/lcov_reporter.js matches test-runner/output/lcov_reporter.snapshot
import * as common from '../common/index.mjs';
import * as fixtures from '../common/fixtures.mjs';
import { spawnAndAssert, lcovTransform, ensureCwdIsProjectRoot } from '../common/assertSnapshot.js';
if (!process.features.inspector) {
common.skip('inspector support required');
}
ensureCwdIsProjectRoot();
await spawnAndAssert(
fixtures.path('test-runner/output/lcov_reporter.js'),
lcovTransform,
);