Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/parallel/test-debugger-extract-function-name.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import assert from 'assert';
const cli = startCLI([fixtures.path('debugger', 'three-lines.js')]);

try {
await cli.waitForInitialBreak();
await cli.waitFor(/Debugger attached\./);
await cli.waitForPrompt();
await cli.command('exec a = function func() {}; a;');
assert.match(cli.output, /\[Function: func\]/);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const script = fixtures.path('debugger', 'three-lines.js');
const cli = startCLI(['--inspect-port=0', script], [], {}, { randomPort: false });

(async () => {
await cli.waitForInitialBreak();
await cli.waitFor(/Debugger attached\./);
await cli.waitForPrompt();
assert.match(cli.output, /debug>/, 'prints a prompt');
assert.match(
Expand Down
3 changes: 2 additions & 1 deletion test/parallel/test-debugger-watch-validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ const assert = require('assert');
const cli = startCLI([fixtures.path('debugger/break.js')]);

(async () => {
await cli.waitForInitialBreak();
await cli.waitFor(/Debugger attached\./);
await cli.waitForPrompt();
await cli.command('watch()');
await cli.waitFor(/ERR_INVALID_ARG_TYPE/);
assert.match(cli.output, /TypeError \[ERR_INVALID_ARG_TYPE\]: The "expression" argument must be of type string\. Received undefined/);
Expand Down