Testing code creates more reliable and maintainable applications. It’s not always a straightforward process, though. Stubs and spies give us more control of what we can test and how our code behaves when we test it. Adding them to a test suite can solve several testing problems.
After this screencast, you'll be able to…- Test the details of how a function was called during a test with declarative assertions.
Familiarity with Node.js and package managers (npm or yarn) is recommended.
For the More Curious...Sinon.js
Transcripts are only available for subscribers. Create an account today to access our collection of screencasts, skill packs, and more.
Project files are only available for subscribers. Create an account today to access our collection of screencasts, skill packs, and more.