Introduction
Stubbing responses lets you fake server answers during tests. This helps you test your app without needing a real server.
When the real server is slow or unavailable.
To test how your app handles specific server responses like errors.
To speed up tests by avoiding real network calls.
When you want to test edge cases that are hard to get from the real server.