Repository navigation
chore(deps-dev): bump vitest from 4.1.11 to 5.0.3 - #403
Merged
Merged
Conversation
dependabot
Bot
force-pushed
the
dependabot/npm_and_yarn/vitest-5.0.3
branch
from
October 6, 2026 13:04
90de818 to
ff74b6c
Compare
Bumps [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) from 4.1.11 to 5.0.3. - [Release notes](https://github.com/vitest-dev/vitest/releases) - [Changelog](https://github.com/vitest-dev/vitest/blob/main/docs/releases.md) - [Commits](https://github.com/vitest-dev/vitest/commits/v5.0.3/packages/vitest) --- updated-dependencies: - dependency-name: vitest dependency-version: 5.0.3 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]>
dependabot
Bot
force-pushed
the
dependabot/npm_and_yarn/vitest-5.0.3
branch
from
October 6, 2026 13:13
ff74b6c to
fe6efa2
Compare
Vitest 5 no longer reads custom matcher types from the global `jest.Matchers` interface, which is all the root `@testing-library/jest-dom` types augment. Its `/vitest` entry point augments Vitest's `Assertion` directly, as the Vitest migration guide recommends. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Only the root jest-dom types pulled in the Jest globals. Nothing loads them since the switch to the jest-dom vitest entry point. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
|
🚀 Deployed on https://pr-403.event-visualizer.netlify.dhis2.org |
HendrikThePendric
disabled auto-merge
October 21, 2026 09:41
|
HendrikThePendric
approved these changes
Oct 21, 2026
This branch was previously 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.



Changes on top of the Dependabot bump
Vitest 5 no longer reads custom matcher types from the global
jest.Matchersinterface (migration guide). Ourtsconfig.jsonloaded the root@testing-library/jest-domtypes, which only add to that interface, so every jest-dom matcher (toBeInTheDocument,toHaveAttribute, …) failed type checking. The tests themselves still ran fine.tsconfig.jsonnow loads@testing-library/jest-dom/vitest, jest-dom's Vitest entry point, as a Vitest maintainer suggested intypecheck: Custom DOM matchers (toHaveTextContent,toHaveAttribute) missing fromAssertiontypes in v5.0.0 vitest-dev/vitest#11233.@types/jestis removed. Only the root jest-dom types used it.Known issue
Until testing-library/jest-dom#742 is released, jest-dom's matchers declare the element as their return type instead of
void(or aPromiseforexpect.poll). It only matters when code uses a matcher's return value, which ours doesn't.Bumps vitest from 4.1.11 to 5.0.3.
Release notes
Sourced from vitest's releases.
... (truncated)
Commits
33cadeachore: release v5.0.3 (#11409)346d389fix(vm): don't reuse scripts across vite environments (#11395)f6c9a49fix(deps): pinwhy-is-node-runningto3.2.1to avoid users running into `...062c75dchore: fix standalone docs build, update exports maps (#11394)caf2887fix(vm): do not optimize deps from index.html (fix #11329) (#11360)50312ebfix(pool): preserve unique pool ids whengroupOrderis set (#11392)7c36748fix(browser): ignore page crash while cancelling (#11386)92ba7fcfix: scope cache key generators to projects (fix #11281) (#11301)38f9885fix(cache): revalidate imports of cached modules (#11381)b24585ffix: don't retry whentest.failsexpectedly failed (#11219)🤖 Generated with Claude Code