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

[Bug]: Storybook index crashes when directories match glob as stories #28954

Open
Tracked by #29531 ...
yannbf opened this issue Aug 22, 2024 · 0 comments
Open
Tracked by #29531 ...

[Bug]: Storybook index crashes when directories match glob as stories #28954

yannbf opened this issue Aug 22, 2024 · 0 comments

Comments

@yannbf
Copy link
Member

yannbf commented Aug 22, 2024

When running vitest tests where test.browser.screenshotFailures is set to true, upon test failures a screenshot is stored in a path like src/components/__screenshots__/Button.stories.tsx/Primary.png.

Because there is a directory named Button.stories.tsx, it causes Storybooks indexer to crash.

We should probably handle directories as not stories, or at least add __screenshots__ as a default ignored path in the indexer.

More context: vitest-dev/vitest#6239

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

1 participant