Remix.run Logo
vkou 5 hours ago

All rules exist to be broken in the right circumstances. But in 99.9% of test code, there's no reason to do any of that.

1718627440 4 hours ago | parent [-]

I think when testing code with an open call, it is a good idea to test what happens on different return values of open. If that is not what you intent to test for this method, then that method shouldn't contain open at all, as already pointed out by other comments.