Open kasium opened 11 months ago
I want to compare a mock to an object in jest but it won't work
interface Foo { a: string; b: number; } const foo = mock<Foo>(); foo.a = "bar"; expect(foo).toStrictEqual({ a: "bar" });
Output:
expect(received).toStrictEqual(expected) // deep equality Expected: {"a": "bar"} Received: undefined
Do you know why this is undefined?
@kasium I have the same question. Did you end up finding an answer for this?
@zaid-hopstack nope
I want to compare a mock to an object in jest but it won't work
Output:
Do you know why this is undefined?