-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Allow passing options to react-test-renderer .create() method #881
Comments
Comment by testerez With @jasonmorganson solution we could have a per-story mock: storybook-eol/storyshots#58 (comment) That said, options passed to |
Hi, what's the status on this? I need this functionality and would like to do what I can to get it merged. |
Hi, I've made a proposal for a react component-based api for defining stories and passing arbitrary props: #993 |
It's now possible to set a (admittedly global) We still need a solution to doing it per-story, I suppose. See @theinterned's linked discussion issues. |
@tmeasday can we close this now, or do we want to continue the per-story discussion here? |
I think it's useful to have an open issue about this because it is something people need. |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. We do try to do some housekeeping every once in a while so inactive issues will get closed after 90 days. Thanks! |
Hey there, it's me again! I am going to help our maintainers close this issue so they can focus on development efforts instead. If the issue mentioned is still a concern, please open a new ticket and mention this old one. Cheers and thanks for using Storybook! |
Issue by jrdrg
Wednesday Jan 25, 2017 at 23:09 GMT
Originally opened as storybook-eol/storyshots#76
This PR adds the ability to pass options to the react-test-renderer
create
method, for example to allow mocking refs as per https://facebook.github.io/react/blog/2016/11/16/react-v15.4.0.html#mocking-refs-for-snapshot-testingjrdrg included the following code: https://github.com/storybooks/storyshots/pull/76/commits
The text was updated successfully, but these errors were encountered: