☕️ Classic, reliable, trusted test framework for Node.js and the browser
add cache comment
Pat Finnigan526ffc165511
diff --git a/lib/mocha.js b/lib/mocha.jsindex d2261c4d..5d2ab9ac 100644--- a/lib/mocha.js+++ b/lib/mocha.js@@ -505,6 +505,14 @@ Mocha.prototype.forbidPending = function () {/*** Run tests and invoke `fn()` when complete.*+ * Note that `loadFiles` relies on Node's `require` to execute+ * the test interface functions and will be subject to the+ * cache - if the files are already in the `require` cache,+ * they will effectively be skipped. Therefore, to run tests+ * multiple times or to run tests in files that are already+ * in the `require` cache, make sure to clear them from the+ * cache first in whichever manner best suits your needs.+ ** @api public* @param {Function} fn* @return {Runner}