We all know how testing your code is important for stable releases and early bug detection. We should test happy paths, corner cases, and thrown errors.
Old school
Before async/await coroutines were introduced in Swift, we had to use expectations to test asynchronous code.
Apple provides an excellent tool