Skip to content

Commit b57291b

Browse files
committed
watch: fix some node argument not passed to watched process
1 parent 7bc1e19 commit b57291b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/sequential/test-watch-mode.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ console.log(values.random);
460460

461461
writeFileSync(path.join(projectDir, 'some.js'), 'console.log(\'hello\')');
462462

463-
const file = createTmpFile('console.log("running");', '.cjs', projectDir);
463+
const file = createTmpFile('console.log(\'running\');', '.js', projectDir);
464464
const watchedFile = createTmpFile('', '.js', dir);
465465
const args = [`--watch-path=${dir}`, '--require', './some.js', file];
466466
const { stdout, stderr } = await runWriteSucceed({

0 commit comments

Comments
 (0)