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 8a8331f commit 526ffc1Copy full SHA for 526ffc1
lib/mocha.js
@@ -505,6 +505,14 @@ Mocha.prototype.forbidPending = function () {
505
/**
506
* Run tests and invoke `fn()` when complete.
507
*
508
+ * Note that `loadFiles` relies on Node's `require` to execute
509
+ * the test interface functions and will be subject to the
510
+ * cache - if the files are already in the `require` cache,
511
+ * they will effectively be skipped. Therefore, to run tests
512
+ * multiple times or to run tests in files that are already
513
+ * in the `require` cache, make sure to clear them from the
514
+ * cache first in whichever manner best suits your needs.
515
+ *
516
* @api public
517
* @param {Function} fn
518
* @return {Runner}
0 commit comments