Repository navigation
chore(deps): update vitest to v5 - #453
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
There was a problem hiding this comment.
ℹ️ No critical issues. One
enginesmismatch is worth a follow-up.
Reviewed changes
Mode: standard. I reviewed the grouped Renovate major bump of vitest and @vitest/coverage-v8 to v5 (resolves to 5.1.0) and ran every package's suite against it.
vitest^4.1.12→^5.0.0— root devDependency. The lockfile drops the packages vitest 5 now inlines:@vitest/expect,runner,snapshot,utilsandpretty-format.@vitest/coverage-v8^4.1.12→^5.0.0—themes-colorsdevDependency. It now pulls@vitest/istanbul-lib-*in place ofistanbul-lib-*,istanbul-reportsandmake-dir.- Lockfile churn —
[email protected]leaves the tree, so the mdx, micromark and jsdom snapshots change their peer suffix from([email protected])to([email protected]). None of those packages change version.
Checks run on the PR head:
pnpm install --frozen-lockfilepasses.vitest runpasses on 5.1.0 in all five packages: core 121, markdown 122, themes-colors 120, ui-react 88, flame 680.themes-colorscoverage thresholds pass under--coverage.pnpm turbo typecheckis clean.- No source file imports a
@vitest/*subpackage directly, so the removed entry points don't affect this repo.
Overall: ready to merge. Top priority: align the root engines.node (see below). Nothing else needs action.
ℹ️ Root engines.node still advertises Node 20, which vitest 5 dropped
One of vitest 5's listed breaking changes is "Require Node.js 22 and Vite 6.4". The locked [email protected] declares engines.node: ^22.12.0 || ^24.0.0 || >=26.0.0. The root package.json still declares ^20.19.0 || ^22.13.0 || >=24, so a contributor on Node 20 (or 25) passes the workspace's own engine check, but pnpm test runs on an unsupported runtime. CI pins Node 22 everywhere, so CI is not affected. Only the contributor-facing contract drifts.
Technical details
# Root engines range wider than vitest 5 supports
## Affected sites
- package.json:40 — `"node": "^20.19.0 || ^22.13.0 || >=24"`. vitest 5.1.0 needs `^22.12.0 || ^24.0.0 || >=26.0.0`.
## Required outcome
- The root workspace's `engines.node` stops advertising Node versions the test toolchain no longer supports.
## Suggested approach (optional)
- Narrow the root range to something like `^22.13.0 || ^24.0.0 || >=26`. This can go in this PR or a follow-up.
- Leave `packages/flame/package.json` `engines.node` (`>=20.11`) alone. It describes the published runtime contract, and vitest is not a runtime dependency.
## Open questions for the human (optional)
- Is Node 20 still meant to be a supported contributor runtime? It reached EOL in April 2026, so dropping it is probably fine.claude-opus-5-5 | 𝕏
819b587 to
ab2293d
Compare
There was a problem hiding this comment.
✅ No new issues found. The
engines.nodeconcern from the last review no longer applies.
Reviewed changes
Mode: standard. Since the last review, Renovate rebased this PR onto main, which now includes #451 and #452. Only the lockfile changed in this PR's own diff.
- Lockfile re-resolved against the new
main. The[email protected]snapshot now has[email protected]as its peer, and@testing-library/[email protected]resolves its optionalvitestpeer (>= 0.32) to[email protected]. No other versions change because of this PR. - Prior
engines.nodesuggestion resolved through the base. Rootpackage.jsonnow declares^22.22.2 || ^24.15.0 || >=26. That range sits inside vitest 5's^22.12.0 || ^24.0.0 || >=26.0.0, so the workspace no longer advertises a Node version the test toolchain doesn't support.
Checks run on ab2293d (Node 24):
pnpm install --frozen-lockfilepasses.vitest runpasses on 5.1.0 in all five packages: core 121, markdown 122, themes-colors 120, ui-react 88, flame 680. This covers the new combination of jsdom 30, jest-dom 7 and vitest 5.themes-colorscoverage thresholds pass under--coverage.pnpm turbo typecheckis clean.
Overall: ready to merge. Nothing needs action.
claude-opus-5-5 | 𝕏

Note
This PR body was truncated due to platform limits.
This PR contains the following updates:
^4.1.12→^5.0.0^4.1.12→^5.0.0Release Notes
vitest-dev/vitest (@vitest/coverage-v8)
v5.0.5Compare Source
🐞 Bug Fixes
fs.denywith api token file - by @hi-ogawa, Hiroshi Ogawa and Claude Opus 5.5 in #11578 (28dc1)--changed- by @sheremet-va in #11583 (14921)datato theimport.meta.hotstub - by @sheremet-va in #11590 (3a828)skipinskipIf, ignoreundefinedoptions - by @sheremet-va in #11591 (d523a)&#​39;failed&#​39;on worker crash - by @AriPerkkio in #11568 (6ae8e)View changes on GitHub
v5.0.4Compare Source
🚀 Features
test.ui.themeoption - by @sheremet-va in #11499 (1da66)--changed- by @sheremet-va in #11424 (a2336)🐞 Bug Fixes
:in project and change the shape ofresultscache - by @sheremet-va in #11453 (9673c)$string values whentaskTitleValueFormatTruncateis 0 - by @hi-ogawa, Hiroshi Ogawa and Claude Opus 5.5 in #11485 (4f7e1)maxWorkerssetting. Previously, it was applied incorrectly and could lead to Vitest using too many resources. For example, a lower number would still open too many browsers. Fixing it means Vitest opens less instances by default now.allowExternalfails to include uncovered files - by @AriPerkkio in #11513 (4ef00)MapandSetdeep equality in some assertions - by @hi-ogawa, Hiroshi Ogawa and Claude Opus 5.5 in #11402 (b4e79)thistomodule.exports- by @sheremet-va in #11504 (b618a)🏎 Performance
View changes on GitHub
v5.0.3Compare Source
🐞 Bug Fixes
result.statusbetweenrepeatsruns - by @hi-ogawa, Hiroshi Ogawa and Codex (GPT-6) in #11218 (5dbeb)test.failsexpectedly failed - by @hi-ogawa, Hiroshi Ogawa and Codex (GPT-6) in #11219 (b2458)listenuntil tests start running - by @sheremet-va in #11366 (7d8ed)toMatchScreenshotuses wrong reference on retried tests - by @macarie in #11393 (c22ab)why-is-node-runningto3.2.1to avoid users running intoERR_PNPM_TRUST_DOWNGRADE- by @AriPerkkio in #11403 (f6c9a)expect.extendasymmetric matchers - by @hi-ogawa, Hiroshi Ogawa and Claude in #11401 (3e794)groupOrderis set - by @mtorp in #11392 (50312)View changes on GitHub
v5.0.2Compare Source
🐞 Bug Fixes
processin case global is overwritten - by @AriPerkkio in #11343 (0b792)process.stdiohandles - by @AriPerkkio in #11333 (0fd6b)toMatchObjectwith asymmetric matchers - by @ShreeBohara, Claude Opus 5, @hi-ogawa, Hiroshi Ogawa and Codex (GPT-5) in #11100 (42523)RequestwithBlobbody on jsdom 28+ - by @harshit-d3v in #11295 (d1c3e)agentto respect--silent- by @Raj4478 and @AriPerkkio in #11271 (5b95e)createReportcalls - by @7rulnik in #11278 (e8e55)hanging-processto use ESM entrypoint - by @AriPerkkio in #11316 (4e91e)Set.prototype.add- by @fengmk2 in #11299 (a0a93)View changes on GitHub
v5.0.1Compare Source
🚀 Features
🐞 Bug Fixes
extends- by @sheremet-va in #11034 (23dda)deps.optimizer.webis used - by @im10furry in #11214 (2ce29)config.define- by @sheremet-va in #11198 (972e2)toMatchAriaSnapshot- by @sheremet-va in #11208 (c119b)queueMicrotaskandnextTickintoNotFake- by @kingmakeruix, kingmakeruix, Hiroshi Ogawa, Codex and @hi-ogawa in #11261 (a47d7)deepMergeto handle prototype - by @hi-ogawa, Hiroshi Ogawa and Codex in #11215 (4944c)View changes on GitHub
v5.0.0Compare Source
Vitest 5 is officially out! This release focuses on performance and brings a lot of new features while fixing long-standing bugs. See our blog post for the official announcement.
🚨 Breaking Changes
loupe.inspectwith pretty-format - by @hi-ogawa, Claude Opus 5 (1M context) and OpenAI Codex in #9609 (3f802)test.for/eachtitle$variable (take 2) - by @hi-ogawa in #10170 (04d37)attachmentsDirfrom.vitest-attachements/to.vitest/attachments/- by @MdSadiqMd in #10186 (1ba73)sequentialtest/suite options in favor ofconcurrent- by @hi-ogawa and OpenAI Codex in #10198 (9229f)expectpackage - by @sheremet-va in #10221 (ad162)expect.pollwhen function didn't resolve in time - by @hi-ogawa and OpenAI Codex in #10233 (4df04)toHaveTextContentis strict, addtoMatchTextContentas alternative - by @sheremet-va in #10473 (18f30)@vitest/runnerpackage, do not publish it anymore - by @sheremet-va in #10511 (6d6e4)concurrencyId/workerIdon TestModule's diagnostics, make id 1-based - by @sheremet-va in #10516 (bdd98)screenshotDirectoryconfig tobrowser.expect.toMatchScreenshot- by @macarie in #10592 (a60de)@sinonjs/fake-timersand support mockingTemporal- by @hi-ogawa, Hiroshi Ogawa and OpenCode (gpt-5.6-sol) in #10654 (f8b15)>as separator in-t, calculateonlyonce - by @sheremet-va in #10686 (a0b20)locators.exactby default - by @sheremet-va in #10430 (e2032)sessionIdfor orchestrator html request - by @hi-ogawa, Hiroshi Ogawa and OpenAI Codex in #10522 (79b7d)attachmentsDir- by @macarie in #10917 (3b5bb)include/excludeglobs too eager - by @AriPerkkio in #9818 (edacb)thresholds.perFileto accept an object - by @vladlenskiy and @AriPerkkio in #10190 (13b78)toThrow("")behavior by reverting #6710 - by @hi-ogawa in #9643 and #6710 (6c3e4)blobreporter and--merge-reportsdefault to.vitest/blob/- by @AriPerkkio in #10232 (d22b0).vitestby default - by @hi-ogawa, Hiroshi Ogawa, OpenCode (gpt-5.6-sol) and @AriPerkkio in #10621 (58577)Configuration
📅 Schedule: (in timezone UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR has been generated by Mend Renovate CLI.