Featured resource
2026 Tech Forecast
2026 Tech Forecast

Stay ahead of what’s next in tech with predictions from 1,500+ business leaders, insiders, and Pluralsight Authors.

Get these insights
  • Course

Mocking Node.js with Sinon 8

Creating unit tests is a skill, just like any other part of software development. This course will teach you how to effectively isolate your unit tests with spies, stubs, mocks, and fakes.

Intermediate
1h 25m
(81)

Created by Nate Taylor

Last Updated Apr 20, 2022

Course Thumbnail
  • Course

Mocking Node.js with Sinon 8

Creating unit tests is a skill, just like any other part of software development. This course will teach you how to effectively isolate your unit tests with spies, stubs, mocks, and fakes.

Intermediate
1h 25m
(81)

Created by Nate Taylor

Last Updated Apr 20, 2022

Get started today

Access this course and other top-rated tech content with one of our business plans.

Try this course for free

Access this course and other top-rated tech content with one of our individual plans.

This course is included in the libraries shown below:

  • Core Tech
What you'll learn

Creating unit tests that are independent of external systems can be difficult and intimidating. In this course, Mocking Node.js with Sinon, you’ll learn to use the Sinon library for mocking external dependencies while testing your code. First, you’ll explore why mocking matters. Next, you’ll discover the differences between mocks, stubs, spies, and fakes. Finally, you’ll learn how to use a mock in your unit tests. When you’re finished with this course, you’ll have the skills and knowledge of using mocks needed to write unit tests isolated from external dependencies.

Mocking Node.js with Sinon 8
Intermediate
1h 25m
(81)
Table of contents

About the author
Nate Taylor - Pluralsight course - Mocking Node.js with Sinon 8
Nate Taylor
21 courses 4.6 author rating 3191 ratings

Nate's first program was written in QBasic on an 8086 clone his dad built. Since then he's written applications in C++, .NET, and Node.js.

Get started with Pluralsight