Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Pluralsight

Testing JavaScript for Node.js with Mocha

via Pluralsight

Write review

Overview

Why Pay Per Course When You Can Get All of Coursera for 40% Off?
10,000+ courses, Google, IBM & Meta certificates, one annual plan at 40% off. Upgrade now.
Get Full Access


Building good and comprehensive tests for your JavaScript applications helps enable stable and robust applications. Good tests also serve as valuable documentation for what your applications are actually supposed to be doing. In this course, Testing JavaScript for Node.js with Mocha, you'll dive deep into Mocha, one of the most popular and robust testing frameworks for JavaScript. First, you'll start by learning the ins and outs of testing with Mocha. Next, you'll explore how to implement a BDD style of assertion language with Chai. Finally, you'll cover the right way to mock objects and functions with Sinon, and you'll develop an understanding of how to track your code coverage with Istanbul. By the end of this course, you'll be able to build a robust test suite against your node.js applications.

Syllabus

  • Course Overview 1min
  • Testing Your JavaScript 14mins
  • Testing with Mocha 35mins
  • BDD Style Assertions 19mins
  • Spys, Stubs, and Mocks 27mins
  • Testing Real Things 49mins

Taught by

Jonathan Mills

Reviews

4.5 rating at Pluralsight based on 117 ratings

Start your review of Testing JavaScript for Node.js with Mocha

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.