feat!: include shadow root contents in pretty-format output#8545
feat!: include shadow root contents in pretty-format output#8545sheremet-va merged 5 commits intovitest-dev:mainfrom
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:.