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

Extract metadata object from story #224

Open
susorovpp opened this issue Jul 18, 2022 · 0 comments
Open

Extract metadata object from story #224

susorovpp opened this issue Jul 18, 2022 · 0 comments

Comments

@susorovpp
Copy link

susorovpp commented Jul 18, 2022

I am trying to extract metadata (include default story parameters such as title, component, parameters, story.args, story.argTypes, etc.) from file with stories to separate file because my args and argTypes objects are too large. In separate file I create and export an object with all necessary props and then import it to the main file with stories as a constant (also, I make default export).

Story inside Storybook renders fine, but there is no story in Creevey and I can't test component.

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

No branches or pull requests

1 participant