Skip navigation

Exercise: Setting up mocha and chai

Exercise: Setting up mocha and chai: Creating an Open Source JavaScript Library
Exercise: Setting up mocha and chai: Creating an Open Source JavaScript Library

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.

Resume Transcript Auto-Scroll
Skill Level Intermediate
5h 29m
Duration
15,683
Views
Show More Show Less
Skills covered in this course
Web Web Development JavaScript

Continue Assessment

You started this assessment previously and didn't complete it. You can pick up where you left off, or start over.

Start Your Free Trial Now

Start your free trial now, and begin learning software, business and creative skills—anytime, anywhere—with video instruction from recognized industry experts.

Start Your Free Trial Now