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
When both libs are used in the same project, the version of jest-extended overwrites the one from jest-native.
@testing-library/jest-dom has had the same problem testing-library/jest-dom#216 and they renamed their matcher to toBeEmptyDOMElement .
Suggested implementation:
I wished we could have the same matcher on both platforms, but toBeEmptyDOMElement doesn't make sense on native, so I'd suggest something like toBeEmptyElement, or toBeEmptyNode.
Describe the feature you'd like:
Jest-Extended has an assertion named the same as jest-native's one:
-> https://github.com/jest-community/jest-extended#tobeempty
-> https://github.com/testing-library/jest-native#tobeempty
When both libs are used in the same project, the version of jest-extended overwrites the one from jest-native.
@testing-library/jest-dom
has had the same problem testing-library/jest-dom#216 and they renamed their matcher totoBeEmptyDOMElement
.Suggested implementation:
I wished we could have the same matcher on both platforms, but
toBeEmptyDOMElement
doesn't make sense on native, so I'd suggest something liketoBeEmptyElement
, ortoBeEmptyNode
.Teachability, Documentation, Adoption, Migration Strategy:
We should do like
@testing-library/jest-dom
, i.e. add the new matcher and tag the current one as deprecated.The text was updated successfully, but these errors were encountered: