Skip to content
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

Storybook test not working with vitest with react-swc plugin #244

Open
jainaks01-bh opened this issue Nov 20, 2024 · 2 comments
Open

Storybook test not working with vitest with react-swc plugin #244

jainaks01-bh opened this issue Nov 20, 2024 · 2 comments

Comments

@jainaks01-bh
Copy link

jainaks01-bh commented Nov 20, 2024

First of all, Lots of gratitude for working on these plugins, I am not able to devote time to fix, atleast I can raise an issue, that I faced

I have created this issue in storybook, when I was not able to run the component tests with storybook 8.4.2, the error is mentionedin below issue

storybookjs/storybook#29602

When I replaced, @vitejs/plugin-react-swc with @vitejs/plugin-react

I am able to run the component tests. so may be the issue is with this plugin's compilation, so raising it here.

Thank you so much!

@hi-ogawa
Copy link
Collaborator

Can you try barebone Vitest browser mode https://vitest.dev/guide/browser/#browser-option-types? It could be a issue with browser mode in general and debugging storybook integration is normally out of our hand.

@jainaks01-bh
Copy link
Author

Thank you Hiroshi, I will check and update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants