PR-URL: https://github.com/nodejs/node/pull/61803 Refs: https://github.com/nodejs/typescript/issues/51 Reviewed-By: Paolo Insogna <paolo@cowtech.it> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Jordan Harband <ljharb@gmail.com> Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com> Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Pietro Marchini <pietro.marchini94@gmail.com>
27 lines
860 B
JavaScript
27 lines
860 B
JavaScript
// Test that the output of test-runner/output/typescript-coverage.mts matches
|
|
// test-runner/output/typescript-coverage.snapshot
|
|
import * as common from '../common/index.mjs';
|
|
if (!process.config.variables.node_use_amaro) {
|
|
common.skip('Requires Amaro');
|
|
}
|
|
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/typescript-coverage.mts'),
|
|
defaultTransform,
|
|
{
|
|
flags: [
|
|
'--disable-warning=ExperimentalWarning',
|
|
'--test-reporter=tap',
|
|
'--experimental-test-module-mocks',
|
|
'--experimental-test-coverage',
|
|
'--test-coverage-exclude=!test/**',
|
|
],
|
|
},
|
|
);
|