Open sna6mu opened 3 weeks ago
Interestingly, the test
expect(err({ important: 42, useless: 7 })).toMatchObject(err({ important: 42, useless: 7 }));
works!
We also got green results when using vitest@2.1.3
instead of jest.
The issue is still there. A workaround in the meantime would be the following, and so on:
expect(relevantResult.isErr()).toBe(true);
expect(relevantResult._unsafeUnwrapErr()).toMatchObject({important: 42});
Using the following test
was possible (and often times used for our code), but now breaks with
8.1.0
withAny ideas why?