We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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?
The text was updated successfully, but these errors were encountered:
@kasium I have the same question. Did you end up finding an answer for this?
Sorry, something went wrong.
@zaid-hopstack nope
No branches or pull requests
I want to compare a mock to an object in jest but it won't work
Output:
Do you know why this is undefined?
The text was updated successfully, but these errors were encountered: