This repository has been archived by the owner on May 16, 2024. It is now read-only.
[Bug] Issue with composeStories when used with Vitest in Storybook 7 #9
Labels
bug
Something isn't working
Describe the bug
I've been starting to migrate our Vite/Vue 3 repo over to Storybook 7 and I'm running into a weird error as soon as I import
composeStories
into a test file.Simply by adding the following lines:
I get the following error:
Which seems to be happening here. I have
@storybook/addons
installed, but I assume it might be expecting an instance of Storybook that wouldn't be running when we're doing unit tests outside of Storybook?Steps to reproduce the behavior
yarn test:unit
, you should see the error.Expected behavior
I would expect to be able to run this properly. This exact setup is working as expected when we're on Storybook v6.
Environment
The text was updated successfully, but these errors were encountered: