MCPcopy Create free account
hub / github.com/nodejs/node / runTests

Function runTests

test/parallel/test-inspect-async-hook-setup-at-inspect.js:47–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45}
46
47async function runTests() {
48 const instance = new NodeInstance(['--inspect=0'], script);
49 const session = await instance.connectInspectorSession();
50 await session.send([
51 { 'method': 'Runtime.enable' },
52 { 'method': 'Debugger.enable' },
53 { 'method': 'Debugger.setAsyncCallStackDepth',
54 'params': { 'maxDepth': 10 } },
55 { 'method': 'Debugger.setBlackboxPatterns',
56 'params': { 'patterns': [] } },
57 ]);
58
59 await waitForInitialSetup(session);
60 await setupTimeoutForStackTrace(session);
61 await checkAsyncStackTrace(session);
62
63 console.error('[test]', 'Stopping child instance');
64 session.disconnect();
65 instance.kill();
66}
67
68runTests();

Calls 8

killMethod · 0.95
waitForInitialSetupFunction · 0.70
checkAsyncStackTraceFunction · 0.70
sendMethod · 0.65
disconnectMethod · 0.65
errorMethod · 0.45

Tested by

no test coverage detected