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.
- Prevent certain parts of your code from executing during tests.
Familiarity with Node.js and package managers (npm or yarn) is recommended.
For the More Curious...
BNR Guide to Front-End Web Development
Full Stack Courses