Skip to content

Instantly share code, notes, and snippets.

@nicholaskajoh
Last active June 27, 2018 17:54
Show Gist options
  • Save nicholaskajoh/097cae2579e536b3a6f2bcb6c62f2eb9 to your computer and use it in GitHub Desktop.
Save nicholaskajoh/097cae2579e536b3a6f2bcb6c62f2eb9 to your computer and use it in GitHub Desktop.
Test single file in Mocha (Sails.js)
# assuming we want to run the tests in User.test.js
# remember to add test/bootstrap.test.js to mocha.opts
NODE_ENV=test node_modules/.bin/mocha test/integration/model/User.test.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment