testing-library / dom-testing-library

🐙 Simple and complete DOM testing utilities that encourage good testing practices.
https://testing-library.com/dom
MIT License
3.26k stars 466 forks source link

feat: Support anonymous custom elements when pretty printing DOM #1319

Closed KonnorRogers closed 3 months ago

KonnorRogers commented 3 months ago

Fixes https://github.com/testing-library/dom-testing-library/issues/1191

codesandbox-ci[bot] commented 3 months ago

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 8206426a9c9ab0dd1f5cb28e71c859c532f65c4c:

Sandbox Source
react-testing-library-examples Configuration
KonnorRogers commented 3 months ago

@eps1lon I could see how that could be helpful 😆 let me work on it.

KonnorRogers commented 3 months ago

@eps1lon Done!

I also noticed there was no test for named custom elements so I added one.

Let me know if there's anything else I can do :)