MCPcopy Index your code
hub / github.com/nodejs/node / collectEvents

Function collectEvents

test/parallel/test-runner-test-id.js:7–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5const fixtures = require('../common/fixtures');
6
7async function collectEvents() {
8 const events = [];
9 const stream = run({
10 files: [fixtures.path('test-runner/test-id-fixture.js')],
11 isolation: 'none',
12 });
13 for await (const event of stream) {
14 events.push(event);
15 }
16 return events;
17}
18
19async function main() {
20 const events = await collectEvents();

Callers 1

mainFunction · 0.70

Calls 3

runFunction · 0.70
pathMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…