Skip to content

Instantly share code, notes, and snippets.

@rjmccluskey
Forked from timoxley/gist:1721593
Last active June 4, 2018 21:04
Show Gist options
  • Save rjmccluskey/e26a8b5ba21c7f89daf9e5cc29e387af to your computer and use it in GitHub Desktop.
Save rjmccluskey/e26a8b5ba21c7f89daf9e5cc29e387af to your computer and use it in GitHub Desktop.
Recursively run all tests in test directory using mocha
// this will find all files ending with .spec.js and run them with Mocha. Put this in your package.json
// The quotes around test/**/*.spec.js are required
{
"scripts": {
"test": "mocha 'test/**/*.spec.js'"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment