Your fetch failed, your code wrote an empty array, and now your tests assert a lie
DEV Community
Your fetch failed, your code wrote an empty array, and now your tests assert a lie
A truncated HTTP body became an empty list, the empty list became a test fixture, and the fixture became a permanent false fact. Three cheap design rules that make "empty result" impossible to confuse with "no result".
0 comments
No comments yet.