We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdc8e22 commit d74731aCopy full SHA for d74731a
lib/internal/test_runner/runner.js
@@ -427,6 +427,7 @@ function watchFiles(testFiles, opts) {
427
const updatedTestFiles = createTestFileList(opts.globPatterns);
428
429
const newFileName = ArrayPrototypeFind(updatedTestFiles, (x) => !ArrayPrototypeIncludes(testFiles, x));
430
+ const previousFileName = ArrayPrototypeFind(testFiles, (x) => !ArrayPrototypeIncludes(updatedTestFiles, x));
431
432
// When file renamed (created / deleted) we need to update the watcher
433
if (newFileName) {
@@ -438,6 +439,8 @@ function watchFiles(testFiles, opts) {
438
439
return; // Avoid rerunning files when file deleted
440
}
441
442
+
443
+ testFiles = updatedTestFiles;
444
445
446
watcher.unfilterFilesOwnedBy(owners);
0 commit comments