jest
jest copied to clipboard
fix: added inherited string keys check on `subsetEquality` method
Summary
As a result of #13810, this fixes the subsetEquality
method to consider also an object's inherited string keys.
A test case would be nice so we avoid a regression in the future
@SimenB What do you think a good regression test could be in this case?
@joshkel thoughts?
Hi @joshkel ✋
Following your recent fix (#13810), I pushed this PR that will use the getObjectKeys
function in subsetEquality
.
I need to add a regression test as well.
Can you give me an example where getObjectKeys
produces a different output than Reflect.ownKeys
?
This pull request 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.