storybookjs / storybook

Storybook is the industry standard workshop for building, documenting, and testing UI components in isolation
https://storybook.js.org
MIT License
84.68k stars 9.32k forks source link

Internal: Sandbox vitest tests do not include symlinked stories #29203

Open yannbf opened 1 month ago

yannbf commented 1 month ago

Describe the bug

Seems like our Vitest sandbox tests are only testing the basic stories, and not any of the symlinked stories at all. I quickly checked that the behavior works in Vitest ~2.0.0 but does not in Vitest ~2.1.0.

Take a look in a recent run in next: https://app.circleci.com/pipelines/github/storybookjs/storybook/84147/workflows/ae66030f-9e87-494b-a0db-cd3016f2a198/jobs/708910 Notice that only the basic stories are tested. There are 8 tests in that run, it should be around 190.

image

To reproduce: