Menu hamburger icon

Posts for testing


Mocha + Chai.js unit testing for ES6 with Istanbul code coverage

Chai and mocha

Testing is very important for finding bugs, verifying the functionality and improving the general stability of a piece of software. Almost all (if not all) developers test their code in some way. One way to test would be to manually run the program and try out all the functions to see if everything is working as expected. Another (and better) way is to write automated tests that are run every time the code changes.