Skip to content

Instantly share code, notes, and snippets.

@bmorrisondev
Created January 21, 2019 18:25
Show Gist options
  • Save bmorrisondev/e163e8f9b25bc29100af74da437231b4 to your computer and use it in GitHub Desktop.
Save bmorrisondev/e163e8f9b25bc29100af74da437231b4 to your computer and use it in GitHub Desktop.
NPM command to start nodemon & mocha, and run any tests with the 'spec.js' suffix inside the src folder of a node project.
{
"test-spec": "nodemon --exec \"mocha -c --reporter=spec --recursive \"src/**/*.spec.js\"\""
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment