-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
feat!: include shadow root contents in pretty-format output #8545
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
feat!: include shadow root contents in pretty-format output #8545
Conversation
Makes it easier for web component authors to debug and snapshot test their components.
✅ Deploy Preview for vitest-dev ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
The documentation for snapshotFormat points to Jest's I can perhaps add a README to I could also drop the option for now and see if there's demand for it. |
I'd say that adding that we also support |
✅ Deploy Preview for vitest-dev ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for vitest-dev ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Thank you! |
Makes it easier for web component authors to debug and snapshot test their components.
Description
Proposed fix for #8539
The PR extends
pretty-formatto include the contents of shadow roots similar to the inspector tool in browsers.When used in snapshot tests:
Please don't delete this checklist! Before submitting the PR, please make sure you do the following:
pnpm-lock.yamlunless you introduce a new test example.Tests
pnpm test:ci.Documentation
pnpm run docscommand.Changesets
feat:,fix:,perf:,docs:, orchore:.