Skip to content
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

PropTypes error with addon-jest in latest beta #4251

Closed
mrmckeb opened this issue Sep 29, 2018 · 1 comment
Closed

PropTypes error with addon-jest in latest beta #4251

mrmckeb opened this issue Sep 29, 2018 · 1 comment

Comments

@mrmckeb
Copy link
Member

mrmckeb commented Sep 29, 2018

PropTypes error with addon-jest in latest beta

Although it seems to work well, there is a PropType error in the console in the latest beta.

Steps to reproduce

  • Install 4.0.0-alpha.23.
  • Set up @storybook/addon-jest to use config file (addDecorator).
  • Run Storybook.

The following error will appear in the browser console:
Warning: Failed prop type: Invalid prop `panels.storybook/tests/panel.title` supplied to `AddonPanel`.

Note that functionality is not impacted. Disabling the decorator resolves the issue.
// addDecorator(withTests({ results }));

Please specify which version of Storybook and optionally any affected addons that you're running

  • @storybook/react 4.0.0-alpha.23
  • @storybook/addon-jest 4.0.0-alpha.23

Screenshots

image

@mrmckeb
Copy link
Member Author

mrmckeb commented Sep 29, 2018

I found the issue and I've created a PR to resolve this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants