Four approaches to unit test your network requests in Swift
Almost every app now has to deal with the Web. You're going to reach the internet and fetch data at some point. But how can we test such network code? Well, we have many options one can use, and each of them comes with its benefits and disadvantages. Let's see them in greater detail.