See all tags.
Tagged “mocking”
Unit Testing Beginners Guide - Part 3 - Mock Http And Files access
We've all encountered at some point code that needs to do some API calls or read from the file system. It's a super bad idea to actually let the code make the real http requests or read from the file system during unit test. Let's see why and how we can get around these kind of issues.
Unit Testing Beginners Guide - Part 2 - Spying and fake timers
This articles continues the unit testing for beginners series by diving into some of the more advanced concepts when testing functions. You will learn what mocking and stubbing is, how to test functions involving timers and network calls