-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
tests(smoke): check objects against a subset of keys #14270
Conversation
'9-2-BODY': {_fraggleRockOnly: true, ...elements.body}, | ||
'9-1-HTML': {_fraggleRockOnly: true}, | ||
_includes: [ | ||
['page-0-P', elements.p], |
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.
kinda crazy how well this composes
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.
Much better, nice!
FWIW this doesn't really exist for jest's The ship has sailed on that decision if we want non-annoying backwards compatibility, but instead can we just pick non-flakey IDs instead of context IDs? We literally control these nodes' universe, there's no reason for us to have to use these Chrome-assigned numbers for their names. |
Chrome execution context ids just changed under us again, so instead of adding another chrome version case we can change our smoke assertions to be more flexible.
This allows us to check the
Object.entries
of an object using_includes
and_excludes
.