This commit adds support for combining code coverage reports in the test runner. This allows coverage to be collected for child processes, and by extension, the test runner CLI. PR-URL: https://github.com/nodejs/node/pull/47686 Fixes: https://github.com/nodejs/node/issues/47669 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
12 lines
204 B
JavaScript
12 lines
204 B
JavaScript
'use strict';
|
|
const { test } = require('node:test');
|
|
const common = require('./common');
|
|
|
|
function notCalled() {
|
|
}
|
|
|
|
test('first 1', () => {
|
|
common.fnA();
|
|
common.fnD(100);
|
|
common.fnB([1, 2, 3]);
|
|
});
|