Repository navigation
chore(deps-dev): bump vitest, @vitest/ui and @vitest/coverage-v8 to 5.0.3 - #280
Merged
Merged
Conversation
….0.3 @vitest/ui and @vitest/coverage-v8 peer-depend on the exact vitest version, so Dependabot's one-package-per-PR major bumps (#269, #270, #271) each failed `npm ci` with ERESOLVE before any test ran. They move together here, and a `vitest` Dependabot group keeps them together from now on, majors included. @vitest/eslint-plugin is versioned on its own and accepts any vitest, so it stays out of the group. Vitest 5's fake timers record a requestIdleCallback scheduled with a `timeout` as a "Timeout", so their own cancelIdleCallback() throws a type mismatch. usePrefetchItem schedules with `{ timeout: 2000 }`, which failed 22 of its tests. That file now leaves the idle-callback API unfaked and backs it with the faked setTimeout/clearTimeout; the hook itself is unchanged.
kplachkov
approved these changes
Oct 3, 2026
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.
Summary
Upgrades
vitest,@vitest/uiand@vitest/coverage-v8from 4.x to 5.0.3 together. This replaces the three Dependabot PRs, which could never pass CI on their own. There is no user-visible impact: only dev dependencies and tests change.@vitest/uiand@vitest/coverage-v8require the exact samevitestversion, so a PR that bumps only one of the three makesnpm cifail withERESOLVEbefore any tests run.vitestgroup in.github/dependabot.ymlkeepsvitestand@vitest/*in one PR for all update types, majors included.@vitest/eslint-pluginis versioned on its own and accepts any vitest, so it is excluded. The group is listed first because Dependabot puts a dependency in the first group it matches.requestIdleCallbackscheduled with atimeoutas a"Timeout", so their owncancelIdleCallback()throwsCannot clear timer: timer created with setTimeout() but cleared with cancelIdleCallback().usePrefetchItemschedules with{ timeout: 2000 }, which broke 22 tests insrc/hooks/usePrefetchItem.test.ts. That file now leaves the idle-callback API unfaked and backs it with the fakedsetTimeout/clearTimeout. The hook itself is unchanged. The bug is still present in@sinonjs/fake-timers15.4.0 and on itsmainbranch.Related issues
Supersedes #269, #270 and #271.
Commands run locally
npm run typechecknpm run lintnpm run test:coverage(full unit suite plus the v8 coverage provider)npm run buildI did not run the Playwright end-to-end tests locally because they don't use vitest; CI runs them.
Checklist