Skip to content

This repository is for me to date my studies on unit tests in javascript during BootCamp FullStackMaster.

License

Notifications You must be signed in to change notification settings

lipegomes/unit-testing-javascript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

unit-testing-javascript

This repository is for me to date my studies on unit tests in javascript during BootCamp FullStackMaster:

Requirements:

  • 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"

Run tests

npm test

Code coverage

npm run coverage

References

Tools used:

About

This repository is for me to date my studies on unit tests in javascript during BootCamp FullStackMaster.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published