diff --git a/test/sequential/test-debugger-help.js b/test/sequential/test-debugger-help.js deleted file mode 100644 index e24f873212b589..00000000000000 --- a/test/sequential/test-debugger-help.js +++ /dev/null @@ -1,27 +0,0 @@ -'use strict'; -const common = require('../common'); - -common.skipIfInspectorDisabled(); - -const fixtures = require('../common/fixtures'); -const startCLI = require('../common/debugger'); - -const assert = require('assert'); - -{ - const cli = startCLI([fixtures.path('debugger/empty.js')]); - - function onFatal(error) { - cli.quit(); - throw error; - } - - return cli.waitForInitialBreak() - .then(() => cli.waitForPrompt()) - .then(() => cli.command('help')) - .then(() => { - assert.match(cli.output, /run, restart, r\s+/m); - }) - .then(() => cli.quit()) - .then(null, onFatal); -} diff --git a/test/sequential/test-debugger-help.mjs b/test/sequential/test-debugger-help.mjs new file mode 100644 index 00000000000000..64f569831fba5e --- /dev/null +++ b/test/sequential/test-debugger-help.mjs @@ -0,0 +1,19 @@ +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(); +}