• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Flags: --expose-internals --experimental-test-coverage
2
3'use strict';
4require('../../../common');
5const { TestCoverage } = require('internal/test_runner/coverage');
6const { test, mock } = require('node:test');
7
8mock.method(TestCoverage.prototype, 'summary', () => {
9  throw new Error('Failed to collect coverage');
10});
11
12test('ok');
13
14