You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
When running vitest tests where
test.browser.screenshotFailures
is set to true, upon test failures a screenshot is stored in a path likesrc/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
The text was updated successfully, but these errors were encountered: