-
Notifications
You must be signed in to change notification settings - Fork 85
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
[next] feat(vitest): migrate from jest
to vitest
#4599
Conversation
@susnux It seems that |
c1184c9
to
bc2b727
Compare
jest
to vitest
Yes, it replaces e.g. |
Should we wait for this until we merge this PR? Or already go ahead since it seems to work for now? |
I removed my review request here because I don't feel confident to take responsibility for migration to Vitest. While it simplifies configuration by sharing Vite bundling config, works with ESM, and in some cases faster (but in some other slower because of re-initialization of each imported module in each test again), from my feelings, it's still quite a young tool with a small team. Even Vite, with all its support, still has many issues with almost every minor update. At the same time, I don't have much experience with Vitest or its source to know its "special spots". |
Though |
That is true and it is a lot easier to configure, especially as dependencies move to ESM and we already getting problems with them. As we can not externalize them for CJS build. Sometime in the future we will have to ESM only too. |
Signed-off-by: Raimund Schlüßler <[email protected]>
bc2b727
to
b7152bf
Compare
I rebased the vite-config to the latest changes in I think even though |
This migrates the test runner from
jest
tovitest
for the vue 3next
branch.Edit: Fixed, see #4599 (comment) for details.