KonnorRogers / shadow-dom-testing-library

An extension of DOM-testing-library to provide hooks into the shadow dom
MIT License
98 stars 2 forks source link

`prettyShadowDOM` doesn't work when passed a shadow root #27

Closed CreativeTechGuy closed 2 years ago

CreativeTechGuy commented 2 years ago

prettyShadowDOM processes just element.children. If the element passed is a shadow root, it would need to process element.shadowRoot.children too.

It seems like something similar to this is needed.