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
Storyshots: Fix typings of "test"-method #12389
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for digging into this! I'm not too familiar with this code, but it seems like more changes are needed, e.g.
Any chance you can do a more thorough audit of the code to tighten things up as part of this change?
Let's see how it works now. I have done the following changes:
Both changes are in separate commits, you can pick either |
@shilman I have made some changes and they are ready for review. I am not sure if I have to do anything to change the state of this PR so that it gets your attention again. It is still in "Changes requested" state. |
@nknapp i'm on it 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Issue: #12361
What I did
Adjust the typescript definition of storyshot's "test" method to better reflect reality.
It could be improved, but I am not sure which args are really passed all the time
(or maybe only depending on the framework).
How to test
If your answer is yes to any of these, please make sure to include it in your PR.