-
Notifications
You must be signed in to change notification settings - Fork 69
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
usage with vitest? #2
Comments
I think I should just omit the refresh wrapper in test mode. The babel plugin always insert the refresh wrapper but inside I currently working on adding a caching option, so maybe the second option is simpler. Should be fixed later today |
@ArnaudBarre hey! Could we disable refresh mode but for vitest browser mode? https://vitest.dev/guide/browser.html |
Should be the case in the latest version I think. @sheremet-va does |
Yes, it should be disabled unless other plugins enable it. |
Trying this plugin in a prototype project and I get
Error: React refresh preamble was not loaded. Something is wrong.
while trying to run vitest. There is no need to have refresh during test ofc so should I just swap for the regular React plugin for test?this does work
The text was updated successfully, but these errors were encountered: