test-runner
test-runner copied to clipboard
[Bug] storybook custom logic for loading stories doesn't work
Describe the bug
I added in storybook configuration the custom logic for loading stories like described on the official documentation
https://storybook.js.org/docs/react/configure/overview#with-a-custom-implementation
But it doesn't support the async logic:
stories: async (list) => [...list, ...findStories()]
Steps to reproduce the behavior
Like the example from official doc
Expected behavior
The stories are loaded as did by storybook
and build-storybook
native commands
Hey @ild0tt0re thanks a lot for reporting this issue! This is definitely a use case I didn't think about.
For scenarios like these, you can always work around them by running test-storybook --index-json
. Can you give it a try?