-
Notifications
You must be signed in to change notification settings - Fork 961
chore(vitest): move vue config into vitest project #5546
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
Conversation
|
Thanks a lot for this @OrbisK! I did try before without success.. I've updated the PR to fix lint and added Also, would you know how to migrate to Vitest v4? When I try I get this error: FAIL vue test/components/User.spec.ts [ test/components/User.spec.ts ]
Error: Cannot find module '/test/utils/mount' imported from '/Users/benjamincanac/GitHub/nuxt/ui/test/components/User.spec.ts'
β― test/components/User.spec.ts:3:1
1| import { describe, it, expect } from 'vitest'
2| import { axe } from 'vitest-axe'
3| import { mountSuspended } from '@nuxt/test-utils/runtime'
| ^ |
commit: |
should be correct.
I can have a look. can you push what you have? |
|
I've pushed my changes already, do you want me to push this? diff --git a/package.json b/package.json
index e5b1077fd..0c64a1175 100644
--- a/package.json
+++ b/package.json
@@ -178,7 +178,7 @@
"happy-dom": "^20.0.10",
"nuxt": "^4.2.1",
"release-it": "^19.0.6",
- "vitest": "^3.2.4",
+ "vitest": "^4.0.14",
"vitest-axe": "^0.1.0",
"vitest-environment-nuxt": "^1.0.1",
"vue-tsc": "^3.1.5" |
ill upgrade locally ππ½ |
|
@benjamincanac I think I have a "fix" Tests are green but i get these logs:
BTW My "fix":
|
|
Oh yes you're right, we need to wait for |
benjamincanac
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks again! π


π Linked issue
β Type of change
π Description
This should increase test/ci speed because vitest only need to start once.
π Checklist