We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ffe0dc5 commit 3c5ceffCopy full SHA for 3c5ceff
test/parallel/test-inspector-strip-types.js
@@ -18,13 +18,14 @@ async function runTest() {
18
19
const session = await child.connectInspectorSession();
20
21
- const commands = [
+ await session.send({ method: 'NodeRuntime.enable' });
22
+ await session.waitForNotification('NodeRuntime.waitingForDebugger');
23
+ await session.send([
24
{ 'method': 'Debugger.enable' },
25
{ 'method': 'Runtime.enable' },
26
{ 'method': 'Runtime.runIfWaitingForDebugger' },
- ];
-
27
- await session.send(commands);
+ ]);
28
+ await session.send({ method: 'NodeRuntime.disable' });
29
30
const scriptParsed = await session.waitForNotification((notification) => {
31
if (notification.method !== 'Debugger.scriptParsed') return false;
0 commit comments