From d93cff5af33c54ef552e7dc5407bbd58aeb49172 Mon Sep 17 00:00:00 2001 From: Joyee Cheung Date: Tue, 6 May 2025 13:39:17 +0200 Subject: [PATCH] Revert "test: fix watch tests not including completion messages" This reverts commit 6102159fa10eb153ed5de6a2f945f120be32cebd. PR-URL: https://github.com/nodejs/node/pull/58190 Reviewed-By: Marco Ippolito Reviewed-By: Ruben Bridgewater Reviewed-By: Edy Silva Reviewed-By: Luigi Pinca Reviewed-By: Dario Piotrowicz --- test/sequential/test-watch-mode.mjs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/sequential/test-watch-mode.mjs b/test/sequential/test-watch-mode.mjs index 1618225a3f0..a2edbf1125a 100644 --- a/test/sequential/test-watch-mode.mjs +++ b/test/sequential/test-watch-mode.mjs @@ -810,14 +810,14 @@ process.on('message', (message) => { assert.strictEqual(stderr, ''); assert.deepStrictEqual(stdout, [ 'no --watch args present', - `Completed running ${inspect(file)}. Waiting for file changes before restarting...`, + `Completed running ${inspect(file)}`, `Restarting ${inspect(file)}`, 'no --watch args present', - `Completed running ${inspect(file)}. Waiting for file changes before restarting...`, + `Completed running ${inspect(file)}`, ]); }); - it('`--watch-path` args without `=` used alongside `--watch` should not make it into the script', async () => { + it('`--watch-path` ars without `=` used alongside `--watch` should not make it into the script', async () => { const projectDir = tmpdir.resolve('project-watch-watch-path-args'); mkdirSync(projectDir); @@ -835,10 +835,10 @@ process.on('message', (message) => { assert.strictEqual(stderr, ''); assert.deepStrictEqual(stdout, [ 'no cli arg ends with .js', - `Completed running ${inspect(file)}. Waiting for file changes before restarting...`, + `Completed running ${inspect(file)}`, `Restarting ${inspect(file)}`, 'no cli arg ends with .js', - `Completed running ${inspect(file)}. Waiting for file changes before restarting...`, + `Completed running ${inspect(file)}`, ]); }); });