Skip to content

Commit 6102159

Browse files
test: fix watch tests not including completion messages
PR-URL: #58183 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: LiviaMedeiros <[email protected]>
1 parent 5f48fdd commit 6102159

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/sequential/test-watch-mode.mjs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -810,14 +810,14 @@ process.on('message', (message) => {
810810
assert.strictEqual(stderr, '');
811811
assert.deepStrictEqual(stdout, [
812812
'no --watch args present',
813-
`Completed running ${inspect(file)}`,
813+
`Completed running ${inspect(file)}. Waiting for file changes before restarting...`,
814814
`Restarting ${inspect(file)}`,
815815
'no --watch args present',
816-
`Completed running ${inspect(file)}`,
816+
`Completed running ${inspect(file)}. Waiting for file changes before restarting...`,
817817
]);
818818
});
819819

820-
it('`--watch-path` ars without `=` used alongside `--watch` should not make it into the script', async () => {
820+
it('`--watch-path` args without `=` used alongside `--watch` should not make it into the script', async () => {
821821
const projectDir = tmpdir.resolve('project-watch-watch-path-args');
822822
mkdirSync(projectDir);
823823

@@ -835,10 +835,10 @@ process.on('message', (message) => {
835835
assert.strictEqual(stderr, '');
836836
assert.deepStrictEqual(stdout, [
837837
'no cli arg ends with .js',
838-
`Completed running ${inspect(file)}`,
838+
`Completed running ${inspect(file)}. Waiting for file changes before restarting...`,
839839
`Restarting ${inspect(file)}`,
840840
'no cli arg ends with .js',
841-
`Completed running ${inspect(file)}`,
841+
`Completed running ${inspect(file)}. Waiting for file changes before restarting...`,
842842
]);
843843
});
844844
});

0 commit comments

Comments
 (0)