()
| 11 | const { NodeInstance } = require('../common/inspector-helper.js'); |
| 12 | |
| 13 | async function runTest() { |
| 14 | const main = fixtures.path('es-module-loaders', 'register-loader.mjs'); |
| 15 | const child = new NodeInstance(['--inspect-brk=0'], '', main); |
| 16 | |
| 17 | const session = await child.connectInspectorSession(); |
| 18 | await session.send({ method: 'NodeRuntime.enable' }); |
| 19 | await session.waitForNotification('NodeRuntime.waitingForDebugger'); |
| 20 | await session.send([ |
| 21 | { 'method': 'Runtime.enable' }, |
| 22 | { 'method': 'Debugger.enable' }, |
| 23 | { 'method': 'Runtime.runIfWaitingForDebugger' }, |
| 24 | ]); |
| 25 | await session.send({ method: 'NodeRuntime.disable' }); |
| 26 | await session.waitForNotification('Debugger.paused'); |
| 27 | await session.runToCompletion(); |
| 28 | assert.strictEqual((await child.expectShutdown()).exitCode, 0); |
| 29 | } |
| 30 | |
| 31 | runTest(); |
no test coverage detected