-
Notifications
You must be signed in to change notification settings - Fork 640
New issue
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
fix(expect): align toEqual
to jest
#4246
Conversation
Thanks for trying this, but this is significant breaking change to Fundamental issue here is that we share the same logic for I think it's time to fork |
Sure, I'll update this. |
I‘ve update the |
Looks great! Thanks for these changes. I'd like to point one another thing. The below doesn't pass in Jest, but it passes with this change. class A {}
class B {}
expect(new A()).toStrictEqual(new B()); I think we need to add constructor check if |
Thank you, I've fixed this problem. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. This looks great improvements towards jest compatibility. Thanks for working on this!
toEqual
to jest
This pr is to solve #4244