This article was peer reviewed by Panayiotis «pvgr» Velisarakos, Mark Brown and Tom Greco. Thanks to all of SitePoint’s peer reviewers for making SitePoint content the best it can be! Have you ever made some changes to your code, and later found it caused something else to break? I’m sure most of us have. This is almost inevitable, especially when you have a larger amount of code. One thing depend
![Unit Test Your JavaScript Using Mocha and Chai — SitePoint](https://cdn-ak-scissors.b.st-hatena.com/image/square/26e92c2ab218940101f2567d3b0c5ad322d10307/height=288;version=1;width=512/https%3A%2F%2Fwww.sitepoint.com%2Fwp-content%2Fthemes%2Fsitepoint%2Fassets%2Fimages%2Ficon.javascript.png)