diff --git a/tests/legacy-cli/e2e_runner.ts b/tests/legacy-cli/e2e_runner.ts index 01f5a6683c27..21377c015845 100644 --- a/tests/legacy-cli/e2e_runner.ts +++ b/tests/legacy-cli/e2e_runner.ts @@ -257,10 +257,8 @@ Promise.all([findFreePort(), findFreePort(), findPackageTars()]) console.log(`Current Directory: ${process.cwd()}`); console.log('Will loop forever while you debug... CTRL-C to quit.'); - /* eslint-disable no-constant-condition */ - while (1) { - // That's right! - } + // Wait forever until user explicitly cancels. + await new Promise(() => {}); } process.exitCode = 1;