Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

fix --watch not finding any files to execute; closes #3748

Christopher Hillerb7cfceba05fd
diff --git a/lib/cli/run-helpers.js b/lib/cli/run-helpers.js
index 89832083..732161b1 100644
--- a/lib/cli/run-helpers.js
+++ b/lib/cli/run-helpers.js
@@ -295,7 +295,7 @@ exports.runMocha = (
files = []
) => {
if (watch) {
- exports.watchRun(mocha, {extension, grep, ui});
+ exports.watchRun(mocha, {extension, grep, ui, files});
} else {
exports.singleRun(mocha, {files, exit});
}