Description
Course info
Level
Intermediate
Updated
Jan 31, 2020
Duration
1h 26m
Description

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.

About the author
About the author

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.

More from the author
Professionalism for Developers
Intermediate
2h 9m
Dec 20, 2019
JavaScript Promises and Async Programming
Intermediate
1h 21m
Nov 26, 2019
More courses by Nate Taylor
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
[Autogenerated] Hi, everyone. My name is Nate Taylor. And welcome to my course mocking Know Js with signing I am a solution architect at Amateur in Omaha, Nebraska. Creating unit tests is a skill just like any other part of software development. And creating unit tests that are independent of external systems can be tricky and intimidating to solve that in this course, we're gonna cover spying on functions to see what they're doing, stubbing out functions to control how they behave and mocking functions to verify the behavior is correct. By the end of this course, you'll know how and just as importantly, win to create spies. Stubbs fakes and mocks for your unit tests in Know Js Before beginning the course, you should be familiar with no Js and have a basic understanding of what a unit ______. I hope you'll join me on this journey to learn sign and Js with the mocking know Js with signing course at portal site