Skip to content

Instantly share code, notes, and snippets.

@pahund
Created May 25, 2017 08:16
Show Gist options
  • Save pahund/a2b97f5f0a2d702ed2726c21b58b14bf to your computer and use it in GitHub Desktop.
Save pahund/a2b97f5f0a2d702ed2726c21b58b14bf to your computer and use it in GitHub Desktop.
Bash script to run Mocha unit tests using a setup file
#!/usr/bin/env bash
mocha \
--compilers js:./test/setup.js \
--recursive \
'./test/**/*Test.js'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment