mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
test: fix watch tests not including completion messages
PR-URL: https://github.com/nodejs/node/pull/58183 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: LiviaMedeiros <livia@cirno.name>
This commit is contained in:
parent
5f48fddd3a
commit
6102159fa1
1 changed files with 5 additions and 5 deletions
|
@ -810,14 +810,14 @@ process.on('message', (message) => {
|
|||
assert.strictEqual(stderr, '');
|
||||
assert.deepStrictEqual(stdout, [
|
||||
'no --watch args present',
|
||||
`Completed running ${inspect(file)}`,
|
||||
`Completed running ${inspect(file)}. Waiting for file changes before restarting...`,
|
||||
`Restarting ${inspect(file)}`,
|
||||
'no --watch args present',
|
||||
`Completed running ${inspect(file)}`,
|
||||
`Completed running ${inspect(file)}. Waiting for file changes before restarting...`,
|
||||
]);
|
||||
});
|
||||
|
||||
it('`--watch-path` ars without `=` used alongside `--watch` should not make it into the script', async () => {
|
||||
it('`--watch-path` args 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)}`,
|
||||
`Completed running ${inspect(file)}. Waiting for file changes before restarting...`,
|
||||
`Restarting ${inspect(file)}`,
|
||||
'no cli arg ends with .js',
|
||||
`Completed running ${inspect(file)}`,
|
||||
`Completed running ${inspect(file)}. Waiting for file changes before restarting...`,
|
||||
]);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue