test-runner icon indicating copy to clipboard operation
test-runner copied to clipboard

[Bug] storybook custom logic for loading stories doesn't work

Open ild0tt0re opened this issue 2 years ago • 1 comments

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

ild0tt0re avatar Jan 29 '23 17:01 ild0tt0re

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?

yannbf avatar Jan 31 '23 17:01 yannbf