-
Notifications
You must be signed in to change notification settings - Fork 96
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
Way to verify that all stories render without errors #515
Comments
args
I think not applying @wojtekmaj any thoughts on this? |
The problem I was aiming to address with Partial is in my opinion bigger than the one reported here, and I don't know if I have a solution to make everyone happy. In reality many stories would change one, maybe two props, leaving others at their defaults, making them pretty good, isolated and readable test cases. Consider the following, if Partial was missing:
|
should we have |
Sounds like a plan! |
Yea I think the One think to consider might be: the pattern mentioned in #515 (comment), that would break if Partial was missing, seems not to be that common (at least by briefly looking at our stories, it is less than 10% of stories), so maybe we could make the |
I think it is quite valuable to have some way to render all stories. Missing props is just one possible reason for a story to be broken. It's important is to check the stories in runtime, not just static type checking (if it does both, even better). |
Is your feature request related to a problem? Please describe.
What happened a bunch of time to me is
Story<Props>
type +.args
pattern (that is AFAIK the recommended way to do it in the docs) the story crashesWe do have
tsc
+eslint
+ladle build
in our CI pipeline and none of these catches that the story is no longer workingDescribe the solution you'd like
2 solutions come to my mind
ladle verify
) that would actually render all of the stories and report if some of them render error?Additional context
component
story
The text was updated successfully, but these errors were encountered: