A new CLI option to execute a shell command when Storybook is ready #23738
andyearnshaw
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem? Please describe.
I'm using Cypress and Storybook together and I was surprised to see that there is no built-in way to run them together. I'm using start-server-and-test to work around this, but it's yet another dependency that I could do without.
Describe the solution you'd like
Storybook seems like the best-placed app to provide this option. Something as simple as
--exec. That way, I could do this:This would follow these steps:
Describe alternatives you've considered
I could request something like this for Cypress (it already does a short wait for the server, but it's non-configurable). However, there are other test runners, for example CucumberJS + Puppeteer, that could benefit from this being in Storybook.
Are you able to assist to bring the feature to reality?
yes, I can
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions