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

Function runTests

test/parallel/test-inspector-break-e.js:8–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6const { NodeInstance } = require('../common/inspector-helper.js');
7
8async function runTests() {
9 const instance = new NodeInstance(undefined, 'console.log(10)');
10 const session = await instance.connectInspectorSession();
11 await session.send({ method: 'NodeRuntime.enable' });
12 await session.waitForNotification('NodeRuntime.waitingForDebugger');
13 await session.send([
14 { 'method': 'Runtime.enable' },
15 { 'method': 'Debugger.enable' },
16 { 'method': 'Runtime.runIfWaitingForDebugger' },
17 ]);
18 await session.send({ method: 'NodeRuntime.disable' });
19 await session.waitForBreakOnLine(0, '[eval]');
20 await session.runToCompletion();
21 assert.strictEqual((await instance.expectShutdown()).exitCode, 0);
22}
23
24runTests().then(common.mustCall());

Callers 1

Calls 6

expectShutdownMethod · 0.95
waitForNotificationMethod · 0.80
waitForBreakOnLineMethod · 0.80
runToCompletionMethod · 0.80
sendMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…