Last active
January 31, 2020 08:20
-
-
Save joma74/087b5ed5b6febbfe0e198fd739234715 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