7 days of WordPress plugins, themes & templates - for free!* Unlimited asset downloads! Start 7-Day Free Trial
FREELessons: 16Length: 2.2 hours

Next lesson playing in 5 seconds

Cancel
  • Overview
  • Transcript

4.5 Intro to Unit Tests with Mocha and Chai

Tests help you understand your code, and prove that it works. With browser-based test running tools getting more popular, it's crazy not to take advantage of testing to make JS development easier. I'll show you one test runner, called Mocha, and an "assertion library" called Chai that make writing and running tests incredibly satisfying. But remember: the only way to really understand testing is to try it out on your own code, over and over and over...