Skip to content

Commit

Permalink
test_runner: add opts.signal to allFilesWatcher
Browse files Browse the repository at this point in the history
Co-Author: rstagi <[email protected]>
  • Loading branch information
pmarchini committed Aug 6, 2024
1 parent 5efd995 commit 4168d71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/test_runner/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ function watchFiles(testFiles, opts) {
const filesWatcher = { __proto__: null, watcher, runningProcesses, runningSubtests };
opts.root.harness.watching = true;
// Watch for created/deleted files in the current directory
const allFilesWatcher = new FilesWatcher({ __proto__: null, debounce: 200, mode: 'all' });
const allFilesWatcher = new FilesWatcher({ __proto__: null, debounce: 200, mode: 'all', signal: opts.signal });
allFilesWatcher.watchPath(process.cwd());
allFilesWatcher.on('changed', ({ owners, eventType }) => {
if (eventType === 'rename') {
Expand Down

0 comments on commit 4168d71

Please sign in to comment.