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:
it('should be easier than this', async () => {
    const success = Effect.succeed(42)
    await expect(success).toBe(42)
  })

this gives output like:
Error: expect(received).toBe(expected) // Object.is equality

Expected: 42
Received: {"_id": "Exit", "_tag": "Success", "value": 42}



in the work code i'm trying to write, my test is failing with a Received valued like:
Received: {"_id": "Effect", "_op": "OnSuccess", "i0": {"_id": "Effect", "_op": "OnSuccess", "i0": {"_id": "Effect", "_op": "OnSuccess", "i0": {"_id": "Effect", "_op": "Sync", "i0": [Function effect_cutpoint], "i1": undefined, "i2": undefined}, "i1": [Function effect_cutpoint], "i2": undefined}, "i1": [Function effect_cutpoint], "i2": undefined}, "i1": [Function effect_cutpoint], "i2": undefined}
Was this page helpful?