Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save craigtaub/60863a9d96ae790d1acccf9b89e6b528 to your computer and use it in GitHub Desktop.
Save craigtaub/60863a9d96ae790d1acccf9b89e6b528 to your computer and use it in GitHub Desktop.
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