You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constKey=Symbol()classTest{constructor(value){this[Key]=value}[Symbol.iterator](){return[][Symbol.iterator]()}}expect(newTest(1)).toEqual(newTest(2))// success, because property [Key] is ignored
Expected behavior
expect(newTest(1)).toEqual(newTest(2))// fail
Actual behavior
succeed
Additional context
Object.entries() does not return symbols, so symbols are ignored
This issue was closed because it has been stalled for 30 days with no activity. Please open a new issue if the issue is still relevant, linking to this one.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
Version
latest
Steps to reproduce
Expected behavior
Actual behavior
succeed
Additional context
Object.entries() does not return symbols, so symbols are ignored
https://github.com/facebook/jest/blob/1eb3bb5949f4ed1dbb39b9a9d9d76c3399ffd7b0/packages/expect-utils/src/utils.ts#L306-L310
Environment
The text was updated successfully, but these errors were encountered: