Files
node/test/test-runner/test-output-coverage-width-infinity.mjs

17 lines
636 B
JavaScript
Raw Permalink Normal View History

// Test that the output of test-runner/output/coverage-width-infinity.mjs matches
// test-runner/output/coverage-width-infinity.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-width-infinity.mjs'),
defaultTransform,
{ flags: ['--test-reporter=tap', '--test-coverage-exclude=!test/**'] },
);