Mock Network Requests
Talk it through with a coach who asks guiding questions and gives hints until you reach the answer. Pass to mark the challenge as completed.
The problem
- medium
- Pro
A component loads data from an API. Its tests call the real API, so they are slow and fail whenever the API is down. Explain how you'd mock the network, and the risks of mocking too much.
Talk this problem through with an AI coach
This is a Pro challenge. Sign in with Google, then upgrade to start a voice session.