How to Stub Dependencies with Sinon | JavaScript Testing Tutorials



In this video we will learn how to stub dependencies during tests in javascript / node / node.js. We will be using the npm module sinon to stub, mock and spy on the functions we are testing. We will use stub to mock our dependencies so the tests don’t need to rely on these dependencies.

Don’t forget to Subscribe here:

, , , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *