-
-
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
Empty Snapshots (null) with Storyshots #5803
Comments
I am experiencing the same problem, using version 5.0.1. |
I guess it is related to global decorators. @tomekbuszewki have you already fixed it? |
@aralroca Yes, I did, thanks for asking. Actually it was related to using ts-jest. Without it, everything is going well. |
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. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
@aralroca I am experiencing the same issue, did you find a solution? |
If you are having this issue it's probably due to one of the global decorators. I tried removing one by one and for me the issue was with |
@jwm0 Thanks for raising, any alternatives to storybook-addon-styled-component-theme? Did you switch to https://github.com/ticketmaster/storybook-styled-components? This maybe related #3246 (comment) where the decorator needs to be called before require.context |
Will this only work if I stop using |
Describe the bug
After configure the addon-storyshots with React
16.8.3
. Snapshots are created, but when I enter inside the snapshot file to see what the plugin did, the snapshots are empty:Example:
And always
null
, for all the stories...To Reproduce
I configured the plugin in this way:
Create file:
.storybook/__tests__/stories.test.js
with this content:This file is running as an independent test suite when all the tests are running.
Then, to mockup the rest of plugins, I created another file named
setup-tests.js
:and I added to package.json:
My
.storybook/config.js
is the next one:Babel
Expected behavior
I expect to create snapshots with valuable content instead of
null
.Addons
The text was updated successfully, but these errors were encountered: