Skip to content

docs: show how to debug a web component’s shadow root - #1600

Open
sviat-barbutsa wants to merge 2 commits into
testing-library:mainfrom
sviat-barbutsa:pr/shadow-root-debugging-guide
Open

sviat-barbutsa wants to merge 2 commits into
testing-library:mainfrom
sviat-barbutsa:pr/shadow-root-debugging-guide

Conversation

@sviat-barbutsa

Copy link
Copy Markdown

I added a working example to the prettyDOM guide. It shows what a developer sees when printing a host with an open shadow root and how to print the root directly with screen.debug(root). I also clarified which nodes screen.debug accepts.

I built the documentation site and checked the example in the rendered page against the formatter’s output. This guide describes the change proposed in DOM Testing Library #1188.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant