Simple play icon Course
Skills Expanded

Testing Node.js 12 with Mocha 8

by Joe Eames

This course will teach you how to add unit tests to any Node.js application.

What you'll learn

Unit tests make your code more reliable, but effectively using them in Node.js can be difficult. In this course, Testing Node.js 12 with Mocha 8, 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

Joe began his love of programming on an Apple III in BASIC. Although his preferred language is JavaScript, he has worked professionally with just about every major Microsoft language. He is currently a consultant and full time author for Pluralsight. Joe has always had a strong interest in education, and has worked both full and part time as a technical teacher for over ten years. He is a frequent blogger and speaker, organizer of ng-conf, the AngularJS conference (, and a paneli... more

Ready to upskill? Get started