Testing asynchronous code can be hard but using the Combine framework with the right tools can make it easier — First, let’s dive into a code example. This is in Swift, and it’s a simplified version of code in the Expedia app on Apple’s App Store. It is a private function that does a network operation using a Combine publisher. The function subscribes to this publisher on the .userInteractive…