Testing · Middle · Question 5 of 75
What is wrong with waiting like this?
await waitFor(() => {});- ✓Correct answer: An empty callback passes immediately and only waits one tick - it hides a race instead of waiting for a real condition
- 2It throws an error
- 3It waits for all timers
Explanation
Always wait for something observable: an element, a text, a call.