-
-
Save juliaheller/af939dc46417469e530fc816197a8cca to your computer and use it in GitHub Desktop.
Install mocha locally
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| All about mocha |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "scripts": { | |
| "test": "mocha --reporter spec --compilers js:babel-core/register" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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