Issue with Exit Failures in @effect/vitest and vitest After Upgrade

I am not sure if this is an effect/vitest problem or just a vitest problem but when I upgraded to "@effect/vitest": "^0.19" and "vitest": "^3" the way I was checking for exit failures is no longer working. Here is an example that I followed closely from the README:

    it.effect("should throw CycleDetectedError for cyclical dependencies", () =>
      Effect.gen(function* () {
        const result = yield* Effect.exit(newGraph(CyclicalWorkflow));

        expect(result).toStrictEqual(
          Exit.fail(
            new CycleDetectedError({
              cyclePath: [
                NodeId.make("nodeA"),
                NodeId.make("nodeC"),
                NodeId.make("nodeB"),
                NodeId.make("nodeA"),
              ],
            })
          )
        );
      })
    );


Previously this would ensure the proper exit condition and error. Now the test fails with Compared values have no visual difference.
Was this page helpful?