mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00

update the `startCLI` debugging testing utility to set by default the port to use to `0` (i.e. a random port) PR-URL: https://github.com/nodejs/node/pull/59042 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
19 lines
449 B
JavaScript
19 lines
449 B
JavaScript
import { skipIfInspectorDisabled } from '../common/index.mjs';
|
|
|
|
skipIfInspectorDisabled();
|
|
|
|
import { path } from '../common/fixtures.mjs';
|
|
import startCLI from '../common/debugger.js';
|
|
|
|
import assert from 'assert';
|
|
|
|
const cli = startCLI([path('debugger', 'empty.js')]);
|
|
|
|
try {
|
|
await cli.waitForInitialBreak();
|
|
await cli.waitForPrompt();
|
|
await cli.command('help');
|
|
assert.match(cli.output, /run, restart, r\s+/m);
|
|
} finally {
|
|
cli.quit();
|
|
}
|