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
I've noticed a discrepancy between Enzyme's documentation and the behavior with this adapter. The difference doesn't seem to be explained by the current list of differences.
Thanks for the report, this does indeed look like incorrect behavior compared to the docs. It would be useful to confirm that the issue doesn't happen with the React adapter.
Hey, looks like this hasn't gotten any responses in a bit, but I can confirm that in my testing, the React adapter would fail on differences in the children and the Preact adapter does not appear to properly check against the children.
I've noticed a discrepancy between Enzyme's documentation and the behavior with this adapter. The difference doesn't seem to be explained by the current list of differences.
I'm looking specifically at this API:
https://airbnb.io/enzyme/docs/api/ShallowWrapper/contains.html
And these examples:
The last expectation fails when ran with this adapter.
I have a code sandbox here that demonstrates the assertion failure:
https://codesandbox.io/s/snowy-cache-q6hzg
My suspicion is that it has something to do with handling of the
children
prop.The text was updated successfully, but these errors were encountered: