Last active
May 26, 2020 11:49
-
-
Save craigtaub/60863a9d96ae790d1acccf9b89e6b528 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async function runMocha(mocha, options) { | |
const { spec = [] } = options; | |
// if options.watch watchRun() | |
// singleRun | |
// collectFiles and lookupFiles here | |
mocha.files = spec; | |
await mocha.loadFilesAsync(); | |
return mocha.run(exitMochaLater); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment