current commit
251024.3 · test: put helper in test-runner-output into common
// Test that the output of test-runner/output/coverage-width-150.mjs matches
// test-runner/output/coverage-width-150.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-150.mjs'),
  defaultTransform,
  { flags: ['--test-reporter=tap', '--test-coverage-exclude=!test/**'] },
);