Files
node/test/test-runner/test-output-coverage-failure.mjs
T
2025-10-24 09:12:46 +00:00

17 lines
613 B
JavaScript

// Test that the output of test-runner/output/coverage_failure.js matches
// test-runner/output/coverage_failure.snapshot
import * as common from '../common/index.mjs';
import * as fixtures from '../common/fixtures.mjs';
import { spawnAndAssert, defaultTransform, ensureCwdIsProjectRoot } from '../common/assertSnapshot.js';
if (!process.features.inspector) {
common.skip('inspector support required');
}
ensureCwdIsProjectRoot();
await spawnAndAssert(
fixtures.path('test-runner/output/coverage_failure.js'),
defaultTransform,
{ flags: ['--test-reporter=tap', '--test-coverage-exclude=!test/**'] },
);