Check out a free preview of the full Creating an Open Source JavaScript Library on Github course:
The "Exercise: Setting Up Mocha & Chai" Lesson is part of the full, Creating an Open Source JavaScript Library on Github course featured in this preview video. Here's what you'd learn in this lesson:

Mocha and Chai are unit testing and assertion libraries. In this exercise, Kent demonstrates how to get an initial test runner set up in the library. He creates an index.test.js file which will contain the test scripts and a mocha.opts file for configuring Mocha. The solution to this exercise is on the FEM/05.0-setup-tests branch. - http://slides.com/kentcdodds/write-oss#/8/1

Get Unlimited Access Now