Course info
Feb 1, 2021
2h 36m

Unit tests make your code more reliable, but effectively using them in Node.js can be difficult. In this course, Testing Node.js with Mocha, you’ll learn to write unit tests for your Node.js applications using Mocha. First, you’ll explore how to install and configure Mocha. Next, you’ll discover how to write basic tests using Mocha and Chai. Finally, you’ll learn how to test common scenarios in production code and apply best practices. When you’re finished with this course, you’ll have the skills and knowledge of unit testing with Node.js needed to write tests for any production application in Node..

About the author
About the author

Joe has been a web developer for the last 13 of his 16+ years as a professional developer. He has specialized in front end and middle tier development . Although his greatest love is writing code, he also enjoys teaching and speaking about code.

More from the author
Angular Fundamentals
9h 46m
Mar 29, 2021
Angular: The Big Picture
1h 8m
Feb 25, 2021
More courses by Joe Eames
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
Hi there. My name is Joe Eames, and welcome to my course, Testing Node.js with Mocha. I'm a developer and educator with multiple decades of experience building production quality code. Node.js has taken the world by storm. It's a great technology and learning to write unit tests can really supercharge the reliability and quality of your code. In this course, we're going to learn how to do exactly that. Some of the major topics that we will cover include how to use Mocha effectively, how to use the chai assertion library to write our assertions, how to test common production scenarios like asynchronous code, and best practices to make our unit tests easy and maintainable. By the end of this course, you'll be comfortable writing unit tests for your express and other node applications. Before beginning the course, you should be familiar with Node and JavaScript. From here, you'll be able to move on to courses on further topics on unit testing and building bigger and more complex Node.js applications. I hope you'll join me on this journey to learn unit testing with the Testing Node.js with Mocha course, at Pluralsight.