You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The E type is Any, which is a widening from the E of ZLayer.fromFunction, which is Nothing - the function provided to fromFunction is meant to be total. The consequence of this is that it is impossible to eliminate the error type of the stub layer with .orDie (as we do for our other test layers). I see that your in your tests you use .mapError to transform the Any to TestFailure[Any], but that's not ergonomic for our code. I'm just curious about the motivation behind this design decision; maybe I'm just confused.
Thanks!
The text was updated successfully, but these errors were encountered:
While using this library's stub layer for writing specs, I noticed something odd.
The
E
type isAny
, which is a widening from theE
of ZLayer.fromFunction, which isNothing
- the function provided tofromFunction
is meant to be total. The consequence of this is that it is impossible to eliminate the error type of the stub layer with.orDie
(as we do for our other test layers). I see that your in your tests you use.mapError
to transform theAny
toTestFailure[Any]
, but that's not ergonomic for our code. I'm just curious about the motivation behind this design decision; maybe I'm just confused.Thanks!
The text was updated successfully, but these errors were encountered: