-
Notifications
You must be signed in to change notification settings - Fork 405
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
toContainHTML does not handle self-closing tags #347
Labels
Comments
Thanks for the reports. What you suggest seems a reasonable approach. Can you contribute the change yourself? |
just-boris
added a commit
to just-boris/jest-dom
that referenced
this issue
Mar 18, 2021
4 tasks
just-boris
added a commit
to just-boris/jest-dom
that referenced
this issue
Mar 19, 2021
just-boris
added a commit
to just-boris/jest-dom
that referenced
this issue
Mar 23, 2021
gnapse
pushed a commit
that referenced
this issue
Mar 25, 2021
🎉 This issue has been resolved in version 5.11.10 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@testing-library/jest-dom
version: 5.11.9 (latest)node
version: n/anpm
(oryarn
) version: n/aRelevant code or config:
Reproduction:
https://codesandbox.io/s/contains-html-assertion-demo-7nd5n?file=/src/__tests__/hello.js:0-343
Suggested solution:
toContainHTML matcher treats expected content as a string. I figured that this normalization fixes the matching:
Perhaps the matcher inside could apply this normalization
The text was updated successfully, but these errors were encountered: