Confusion with Fiber and Effect Execution in Unit Test
I expected fiber to be a afibe and result to be {count: 2} but instead i got Runtime and another effect
I can solve it with
but it seems terrible for me. I feel i am doing something that is not expected but can not think out anything better in the conext of test unit
const fiber = Effect.runFork(nextNumber({ count: 1 }));
const result = Fiber.join(fiber)
I can solve it with
const p = Effect.runPromise(result);
const result2 = await p;
but it seems terrible for me. I feel i am doing something that is not expected but can not think out anything better in the conext of test unit
