Challenges in Testing Complex Functions with Jest and Refactoring for Effect
I'm struggling with basic testing with jest.
I have a function I'm trying to test that uses a couple different failure types, some pipelines and some flatmaps, but I don't see a well documented way to drop that type of code into my regular test setup.
Here's a simpler example that might help for conversation...
How would you refactor this to make it make sense with Effect:
this gives output like:
in the work code i'm trying to write, my test is failing with a Received valued like:
I have a function I'm trying to test that uses a couple different failure types, some pipelines and some flatmaps, but I don't see a well documented way to drop that type of code into my regular test setup.
Here's a simpler example that might help for conversation...
How would you refactor this to make it make sense with Effect:
this gives output like:
in the work code i'm trying to write, my test is failing with a Received valued like:
