☕️ Classic, reliable, trusted test framework for Node.js and the browser
Update documentation concerning fs.readdir (#3657)
P. Roebuck9d6203004644
diff --git a/lib/utils.js b/lib/utils.jsindex c6d42ba9..fc0aa640 100644--- a/lib/utils.js+++ b/lib/utils.js@@ -83,6 +83,10 @@ function ignored(path) {/*** Lookup files in the given `dir`.*+ * @description+ * Filenames are returned in _traversal_ order by the OS/filesystem.+ * **Make no assumption that the names will be sorted in any fashion.**+ ** @private* @param {string} dir* @param {string[]} [ext=['.js']]@@ -502,12 +506,16 @@ exports.canonicalize = function canonicalize(value, stack, typeHint) {/*** Lookup file names at the given `path`.*- * @memberof Mocha.utils+ * @description+ * Filenames are returned in _traversal_ order by the OS/filesystem.+ * **Make no assumption that the names will be sorted in any fashion.**+ ** @public- * @param {string} filepath Base path to start searching from.- * @param {string[]} extensions File extensions to look for.- * @param {boolean} recursive Whether or not to recurse into subdirectories.+ * @memberof Mocha.utils* @todo Fix extension handling+ * @param {string} filepath - Base path to start searching from.+ * @param {string[]} extensions - File extensions to look for.+ * @param {boolean} recursive - Whether to recurse into subdirectories.* @return {string[]} An array of paths.*/exports.lookupFiles = function lookupFiles(filepath, extensions, recursive) {