()
| 24 | } |
| 25 | |
| 26 | async function runTests() { |
| 27 | const instance = new NodeInstance(undefined, script); |
| 28 | const session = await instance.connectInspectorSession(); |
| 29 | await session.send({ method: 'NodeRuntime.enable' }); |
| 30 | await session.waitForNotification('NodeRuntime.waitingForDebugger'); |
| 31 | await session.send([ |
| 32 | { 'method': 'Runtime.enable' }, |
| 33 | { 'method': 'Debugger.enable' }, |
| 34 | { 'method': 'Debugger.setAsyncCallStackDepth', |
| 35 | 'params': { 'maxDepth': 10 } }, |
| 36 | { 'method': 'Debugger.setBlackboxPatterns', |
| 37 | 'params': { 'patterns': [] } }, |
| 38 | { 'method': 'Runtime.runIfWaitingForDebugger' }, |
| 39 | ]); |
| 40 | await session.send({ method: 'NodeRuntime.disable' }); |
| 41 | |
| 42 | await skipFirstBreakpoint(session); |
| 43 | await checkAsyncStackTrace(session); |
| 44 | |
| 45 | console.error('[test]', 'Stopping child instance'); |
| 46 | session.disconnect(); |
| 47 | instance.kill(); |
| 48 | } |
| 49 | |
| 50 | runTests().then(common.mustCall()); |
no test coverage detected