-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Addon-Test: Vitest 3 - Error: Cannot define a nested project for a chromium browser. #30363
Comments
** Disclaimer** This information might be inaccurate, due to it being generated automatically
|
I tried the suggestion from Geptile above, but it also fails with the same error: export default defineWorkspace([
'vite.config.ts',
{
extends: 'vite.config.ts',
plugins: [
// The plugin will run tests for the stories defined in your Storybook config
// See options at: https://storybook.js.org/docs/writing-tests/test-addon#storybooktest
storybookTest({ configDir: path.join(dirname, '.storybook') })
],
test: {
name: 'storybook',
browser: {
enabled: true,
headless: true,
instances: [{ browser: "chromium", name: 'storybook-chromium' }],
provider: 'playwright',
},
setupFiles: ['.storybook/vitest.setup.ts'],
},
},
]);
|
Thank you for reporting. We messed up the 8.5.1 release and forgot to include the fix in #30309 properly. I will put together another 8.5.2 release now containing the fix. |
Fixed by #30309 and bugfix was released with 8.5.2 |
@valentinpalkovic is this supposed to also fix the error when running |
Describe the bug
Related to #30308.
When using the new
browser.instances
syntax in the Vitest 3 configuration I see the following error:I am aware of #30309 and its inclusion in 8.5.1, but it doesn't actually address the issue. That pull request just modifies the Vitest config template used when adding
@storybook/experimental-addon-test
to an existing project with Vitest 3.Reproduction link
https://github.com/adriantrunzo/sb-vitest-3-bug-1
Reproduction steps
pnpm vitest --project=storybook
I created the reproduction using the following steps:
pnpm dlx storybook@latest init
React + Vite (TS)
pnpm exec storybook add @storybook/experimental-addon-test
remove and unregister @storybook/addon-interactions
vitest.workspace.ts
to change thetest.browser
clause from:to
The change in
vitest.workspace.ts
matches the Vitest documentation and the code in #30309.System
Additional context
No response
The text was updated successfully, but these errors were encountered: