Repository navigation
Update to Vitest 5 - #4180
Draft
HiDeoo wants to merge 6 commits into
Draft
Update to Vitest 5#4180HiDeoo wants to merge 6 commits into
HiDeoo wants to merge 6 commits into
Conversation
|
✅ Deploy Preview for astro-starlight ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
HiDeoo
commented
Sep 3, 2026
|
|
||
| vi.mock('pagefind'); | ||
|
|
||
| afterEach(() => { |
Member
Author
There was a problem hiding this comment.
* main: (34 commits) [ci] format docs: add Large Print to community themes (withastro#4223) [ci] release (withastro#4217) Fix file icons generator (withastro#4215) perf: avoid repeated sidebar subtree scans (withastro#4149) Add benchmark for sidebar sublist processing (withastro#4216) i18n: add freshness to Lunaria dashboard (withastro#4192) [ci] release (withastro#4212) Fix toc highlighting potential page freeze (withastro#4211) i18n(de): update `themes.mdx` (withastro#4207) i18n(ko-KR): update `themes` (withastro#4210) docs: add Pinlyx Docs to the showcase (withastro#4208) [ci] release (withastro#4206) add Fluxer icon (withastro#4201) docs(themes): add Dracula for Starlight (withastro#4205) Update Lunaria action version in workflow (withastro#4204) docs: deploy docs with built Starlight (withastro#4187) ci: fix lunaria workflow (withastro#4203) docs: fix repository link in contributing guide (withastro#4202) Update Lunaria to v0.2 (withastro#4200) ...
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
This PR updates the monorepo to use Vitest 5.
On top of updating the dependencies and following the migration guide, it also applys the following changes:
fsModuleCachewhich is no longer experimental. On my machine, with a warm cache, this saves about 4 seconds on running all tests.I'll undraft the PR once the new packages satisfies our
minimumReleaseAgeand all remaining tasks are addressed.Remaining tasks
TODO(HiDeoo)comments@codspeed/vitest-pluginto support Vitest 5 (PR opened)Vitest 5 also includes somes fixes that should allow us to fix ourcoverage.includeand clean up ourcoverage.excludesettings, but it would probably be best to do this in another PR. I'll investate and report back. (Yes, a dedicated PR makes the most sense.)