-
Notifications
You must be signed in to change notification settings - Fork 27
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
Can't load stories from storyLoader.js file for Storyshots tests #26
Comments
I will look into this in the next few days and let you know what I find. |
Hi, |
Can you post your |
Yes, I had problems with latest React Native release. I think it is because it depends on React 16.0.0-alpha6 (other components have the same problem). So I had to use an older release of RN. Here is an extract of my
Hope it helps ! |
Thank you! I did find a prototype project of mine that had an older version of RN, but it was in really bad shape. Anyways, thanks again, I will try to dig in to this over the weekend. |
Hi, Any updates ? |
Found the reason: If the dependency exists, then storyshots thinks this is a react project, no matter what the framework param is. |
Feature/dismissable dialog
Hi,
I try to use Storyshots with React Native in my unit tests but I can't find the way to load the stories from the generated
storyLoader.js
file.In my JEST
__tests__
directory I have the following test :Then my
storybook/config.js
file :And the generated
storyLoader.js
file :But when I run tests it can't find the stories :
The
Storyloader.js
file is OK when I run Storybook, so the problem occurs only when loading the stories from JEST unit test. I could make it work by putting all the stories in thestorybook
but I want to keep the stories by the components, so not a solution I want to keep.Any idea how I could do that ?
Thanks in advance,
Olivier
The text was updated successfully, but these errors were encountered: