Unexpected Behavior in `Effect.flip()`: Success Channel Raises Error Instead of Returning Undefined
I do not know whether this is the expected behavior or there is an issue with my configuration but:
When using
For example:
Returns:
Imho, this is not very developer friendly.
I feel like it should actually return undefined so that the failure is raised by the assertion:
e.g.
Did I miss something ?
When using
Effect.flip() in a test, if the output of the tested effect is the success channel instead of the failure one it will raise an error.For example:
Returns:
Error: An error has occurredImho, this is not very developer friendly.
I feel like it should actually return undefined so that the failure is raised by the assertion:
e.g.
AssertionError: expected undefined to be an instance of ErrorDid I miss something ?
