≈ the.bay.news

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

Sign in to join the discussion — your thebay.events account works here.

No comments yet.