-
-
Notifications
You must be signed in to change notification settings - Fork 562
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
Update Vitest to v1 #1438
Update Vitest to v1 #1438
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
size-limit report 📦
|
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.
I also updated Vitest in various packages just to get nicer snippets and they are definitely better imo so 👍 on my end.
Locally (and CI too actually), I get a few [ERROR] [vite] WebSocket server error: Port is already in use
errors but I don't think they're relevant to us.
Yes, I noticed these too. I think it’s something to do with things happening in parallel? @hippotastic reported the same errors in the parallel builds of the example projects and added a |
Interesting, to add more details, I got them when running only the |
Ah, good point — I think I saw that too. We do have multiple Vitest workspaces — perhaps would need those to be run sequentially. |
I wonder if it could be vitejs/vite#14328 and we should just ignore in this specific context of testing (the last comment provide a Vitest workaround but a bit annoying imo). |
Nice find! Yeah, I think adding special handling just to hide a warning is not really essential. Eventually they’ll probably fix it and in the mean time we can just not worry about those logs. |
I agree, and it looks like Vitest is supposed to have this workaround but it's not working for some reasons. |
Oh yeah… Well, overriding a global like that is always a bit flaky if some other code somewhere also does something to it, so I guess not totally shocking it’s not working. Still, think I’m happy to merge this for now. |
Description
Updates Starlight’s test dependencies to use the latest version of Vitest, updating from a pre-release to v1.
A couple of test snapshots changed to a nicer string escaping algorithm — I inspected them visually and I don’t think anything important changed, mostly just stuff like:
Updated Vitest coverage thresholds config to match new format as changed in feat!(coverage): glob based coverage thresholds vitest-dev/vitest#4442