Poorly formatted HTML is inserted into Storybook errors, hiding real issues and filling the console with noise #34118
Replies: 2 comments 3 replies
-
Beta Was this translation helpful? Give feedback.
2 replies
-
|
I am closing this discussion in favour of the created issue. Please follow along there! Thanks. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Every time a Storybook test fails, we get error messages like the following printed to the console. I've pasted the whole thing exactly as it is output:
This is incredibly frustrating, as you can imagine. The HTML is a) completely unrelated to the error as it reflects Storybook's UI, not the UI of the page and b) takes up hundreds of lines, burying real issues.
This seemingly comes from a really bad
prettyDOMimplementation inlined into Storybook itself, seedist/preview/runtime.js-- this is then generating from the following line:Right now we have to resort to patching Storybook but it'd be great if this was just removed; stringifying Storybook's UI and returning it to the user offers no value.
Additional information
No response
Create a reproduction
No response
Beta Was this translation helpful? Give feedback.
All reactions