storybookjs / testing-vue3

Testing utilities that allow you to reuse your stories in your unit tests
16 stars 9 forks source link

This package is deprecated as it is a core functionality of Storybook 8! #16

Open yannbf opened 7 months ago

yannbf commented 7 months ago

Hey there! I wanted to thank you for using @storybook/testing-vue3!

@storybook/testing-vue3 has been promoted to a first-class Storybook functionality in Storybook 8. This means that you no longer need this package, and this package will not be worked on anymore (especially regarding Storybook 7, unless there are security issues). Instead, you can import the same utilities, but from the @storybook/vue3 package.

Please do the following:

Upgrade to Storybook 8 if you haven't already Uninstall @storybook/testing-vue3 Update your imports from @storybook/testing-vue3 to @storybook/vue3

// Component.test.js
- import { composeStories } from '@storybook/testing-vue3';
+ import { composeStories } from '@storybook/vue3';

// setup-files.js
- import { setProjectAnnotations } from '@storybook/testing-vue3';
+ import { setProjectAnnotations } from '@storybook/vue3';

Please, if even after migrating, you are still experiencing issues, report them in the Storybook monorepo.

Thank you so much for this journey!