Skip to content

Instantly share code, notes, and snippets.

@thalesfsp
Forked from timoxley/gist:1721593
Created February 22, 2017 22:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thalesfsp/f4b3361547f82e1d45128b3eadab746d to your computer and use it in GitHub Desktop.
Save thalesfsp/f4b3361547f82e1d45128b3eadab746d 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 _test.js and run them with Mocha. Put this in your package.json
"scripts": {
"test": "find ./tests -name '*_test.js' | xargs mocha -R spec"
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment