()
| 6 | const { NodeInstance } = require('../common/inspector-helper.js'); |
| 7 | |
| 8 | async 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 | |
| 24 | runTests().then(common.mustCall()); |
no test coverage detected
searching dependent graphs…