-
Notifications
You must be signed in to change notification settings - Fork 23
.addDecorator is probably not working #68
Comments
@roonyh what do you think about this issue? |
@kitze I am taking a look. |
I'm running into the same issue. I have a component I specifically created for testing. I can use a global addDecorator and it works fine with storybooks. Then when I run storyshot via jest it fails trying to find functions that should have been injected via context. If I use addDecorator on a per story level it works fine in both storybooks and storyshots. |
I have this issue too with storyshots |
I'm using material-ui in my project for some of the components. The components that are not affected by material-ui and don't need muiTheme pass the tests. But the other components that need muiTheme provided by context, are failing with a warning
Warning: Failed context type: The context `muiTheme` is marked as required in `CircularProgress`, but its value is `undefined`.
Keep in mind that the stories in storybook are fine because I'm providing muiTheme through a decorator like this in my global .storybook/config.js file:
The text was updated successfully, but these errors were encountered: