-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
Is there any solution to use vite-jest for an application which using Vite + Vue2 + Composition API? #35
Comments
The errors here are because that I added some default options to the vite server but didn't realize they are Vue-3 only. But there are some other issues that prevent vite-jest from supporting the vue2 plugin🤔 I'll take a look. |
Would be cool to see this fixed 👀 |
Hi, is there any update on this? |
Hey @haug1 and @nagisaando, had the same problem, discovered vitest. With a little rewrite, works like a charm with vue2 + vite 🥳 |
@tomdevelops I am interested in using Vitest but it's just not production ready yet, and that bothers me a bit.😅 Hopefully they will be ready soon tho. |
@tomdevelops How did you get it working? I use Laravel 9 / Vue2 / Vite. My tests w/ vitest all throw (e.g.) "captialize is not a function" for simple function import/exports. However import/export works fine with objects & constants.
I also tried with jest, but I get |
If Vite + Vue2 is not vite-jest support target, I'll close this issue.
I got this error when I run vite-jest
My environment
The text was updated successfully, but these errors were encountered: