Description
Course info
Level
Intermediate
Updated
May 4, 2017
Duration
2h 29m
Description

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.

About the author
About the author

Jonathan is a Pluralsight Author, Technology Advisor, and Business Leader. As a member of the Chief Digital Advisory team at World Wide Technology, Jonathan is able to leverage his unique experiences and skills to drive digital transformation for his clients. As a dedicated developer community leader, Jonathan serves on the board of directors for the Kansas City Developers Conference, is a Microsoft MVP, and is a regular speaker and keynote presenter at conferences around the globe.

More from the author
RESTful Web Services with Node.js and Express
Intermediate
2h 3m
Jan 24, 2019
More courses by Jonathan Mills
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
Hi everyone. My name's Johnathan Mills, and welcome to my course, JavaScript Testing for Node. js with Mocha. I'm a consultant dealing with JavaScript, and one of the things I noticed with JavaScript developers is everyone says, we should be testing our code, but not as many people are actually doing it. And I think part of the reason for that is that getting tests set up and going is not an easy thing to do, plus there's a lot of moving parts, and it's just one more thing that we all have to learn. And keeping up with the JavaScript ecosystem is not exactly something that's easy to do. But in this course, we're going to simplify that process. So we're going to break it down to the minimum parts needed to get testing going. So we're going to start with a deep dive into Mocha, and we're going to make sure we understand how that works and what's going on in there. And then we'll add in assertion and mocking frameworks to make our testing easier. And then we'll pull that all together and test a real application, so that we understand how things work all together. By the end of this course, you'll be able to set up tests for your own application. But before beginning the course, you're probably going to need to be familiar with Node. js and JavaScript, otherwise it's not going to make a whole lot of sense to you. I hope you'll join me in this journey to learn all about Mocha with this course, at Pluralsight.