Skip to content

Instantly share code, notes, and snippets.

@juliaheller
Forked from joma74/!Mocha
Created January 31, 2020 08:20
Show Gist options
  • Select an option

  • Save juliaheller/af939dc46417469e530fc816197a8cca to your computer and use it in GitHub Desktop.

Select an option

Save juliaheller/af939dc46417469e530fc816197a8cca to your computer and use it in GitHub Desktop.
Install mocha locally
All about mocha
"scripts": {
"test": "mocha --reporter spec --compilers js:babel-core/register"
}
cd $projectdir$
npm install mocha --save
npm install chai --save
npm install babel-core --save-dev
mkdir test
node node_modules/.bin/mocha // http://stackoverflow.com/questions/9722407/how-do-you-install-and-run-mocha-the-node-js-testing-module-getting-mocha-co
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment