Open
Description
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?
Metadata
Assignees
Labels
No labels
Activity