storybookjs / storybook

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

[Bug]: @storybook/testing-vue3 is not supported for Storybook 7 and stops the migration process. #22646

Closed MargaritaBusyginaCa closed 1 year ago

MargaritaBusyginaCa commented 1 year ago

Describe the bug

We have a @storybook/testing-vue3 package integrated into our project and right now we are not able to migrate to storybook v7 because there is a dependency tree that can't be resolved. I assume that's because @storybook/testing-vue3 has peerDependencies (some storybook packages of v6):

"node_modules/@storybook/testing-vue3": {
            "version": "0.0.2",
            "resolved": "https://registry.npmjs.org/@storybook/testing-vue3/-/testing-vue3-0.0.2.tgz",
            "integrity": "sha512-kmgv+zddTzZwQx5AYz0zM/ySJ/2lmNNij8WvXDy9u84fnc3HZPQ1yckUYtviaKty8VFB/TZaqxEqNm37wKd03Q==",
            "dev": true,
            "peerDependencies": {
                "@storybook/addons": "^**6.0.0**",
                "@storybook/client-api": "^**6.0.0**",
                "@storybook/vue3": "^**6.0.0**",
                "vue": "^3.0.0"
            }
        },

And this is the log after running npx storybook@latest upgrade: Screen Shot 2023-05-19 at 4 19 48 PM

To Reproduce

No response

System

Environment Info:

  System:
    OS: macOS 12.6
    CPU: (10) arm64 Apple M1 Pro
  Binaries:
    Node: 18.16.0 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 9.6.7 - ~/Desktop/projects/vue-mx/node_modules/.bin/npm
  Browsers:
    Chrome: 113.0.5672.126
    Firefox: 111.0.1
    Safari: 16.0
  npmPackages:
    @storybook/addon-a11y: ^7.0.12 => 7.0.12 
    @storybook/addon-actions: ^7.0.12 => 7.0.12 
    @storybook/addon-coverage: ^0.0.8 => 0.0.8 
    @storybook/addon-docs: ^7.0.12 => 7.0.12 
    @storybook/addon-essentials: ^7.0.12 => 7.0.12 
    @storybook/addon-interactions: ^7.0.12 => 7.0.12 
    @storybook/addon-links: ^7.0.12 => 7.0.12 
    @storybook/addons: ^7.0.12 => 7.0.12 
    @storybook/jest: ^0.1.0 => 0.1.0 
    @storybook/test-runner: ^0.10.0 => 0.10.0 
    @storybook/testing-library: ^0.1.0 => 0.1.0 
    @storybook/testing-vue3: ^0.0.2 => 0.0.2 
    @storybook/theming: ^7.0.12 => 7.0.12 
    @storybook/vue3: ^7.0.12 => 7.0.12

Additional context

This issue might be connected to this one in testing-vue3

yannbf commented 1 year ago

Hey @MargaritaBusyginaCa thanks for opening this issue. I just released version 1.0.0 @storybook/testing-vue3 which should support Storybook 7 and allow you to proceed without issues.