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 <marcoippolito54@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Edy Silva <edigleyssonsilva@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Dario Piotrowicz <dario.piotrowicz@gmail.com>
This commit is contained in:
parent
a0d458e448
commit
d93cff5af3
@ -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)}`,
|
||||
]);
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user