utils

Mocha. utils

new utils()

Source:

Methods

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

Source:

Lookup file names at the given path.

Parameters:
NameTypeDescription
filepathstring

Base path to start searching from.

extensionsArray.<string>

File extensions to look for.

recursiveboolean

Whether or not to recurse into subdirectories.

Returns:

An array of paths.

Type
Array.<string>