node/test/sequential/test-debugger-help.mjs
Chandana e236af8d54
test: use async/await in test-debugger-help
PR-URL: https://github.com/nodejs/node/pull/44686
Reviewed-By: Rich Trott <rtrott@gmail.com>
2022-09-29 23:29:11 +00:00

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();
}