utils

Mocha. utils

new utils()

Source:

Methods

(static) exports.lookupFiles(filepath, extensions, recursive) → {Array:.<string:>}

Source:
To Do:
  • Fix extension handling

Filenames are returned in traversal order by the OS/filesystem.
Make no assumption that the names will be sorted in any fashion.

Parameters:
Name Type Description
filepath string

Base path to start searching from.

extensions Array:.<string:>

File extensions to look for.

recursive boolean

Whether to recurse into subdirectories.

Returns:

An array of paths.

Type
Array:.<string:>