This repository is for me to date my studies on unit tests in javascript during BootCamp FullStackMaster:
-
Have NodeJs and npm installed on your operating system.
-
Clone the file, enter the file folder and run the command below to install the dependencies
npm install
-
In package.json add:
Linux or Mac:
"test": "./node_modules/.bin/mocha --reporter spec **/*.test.js"
"coverage": "node_modules/.bin/istanbul cover node_modules/mocha/bin/_mocha -- --reporter spec **/*.test.js"
Windows:
"test": "node_modules\.bin\mocha --reporter spec **/*.test.js"
"coverage": "node_modules\.bin\istanbul cover node_modules\mocha\bin\_mocha -- --reporter spec **/*.test.js"
npm test
npm run coverage