Skip to content

Commit 4168d71

Browse files
committed
test_runner: add opts.signal to allFilesWatcher
Co-Author: rstagi <r.stagi96@gmail.com>
1 parent 5efd995 commit 4168d71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/test_runner/runner.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ function watchFiles(testFiles, opts) {
417417
const filesWatcher = { __proto__: null, watcher, runningProcesses, runningSubtests };
418418
opts.root.harness.watching = true;
419419
// Watch for created/deleted files in the current directory
420-
const allFilesWatcher = new FilesWatcher({ __proto__: null, debounce: 200, mode: 'all' });
420+
const allFilesWatcher = new FilesWatcher({ __proto__: null, debounce: 200, mode: 'all', signal: opts.signal });
421421
allFilesWatcher.watchPath(process.cwd());
422422
allFilesWatcher.on('changed', ({ owners, eventType }) => {
423423
if (eventType === 'rename') {

0 commit comments

Comments
 (0)