Skip to content

build(deps-dev): bump vitest from 4.1.11 to 5.0.0 - #336

Open
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/npm_and_yarn/vitest-5.0.0
Open

dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/npm_and_yarn/vitest-5.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 17, 2026

Copy link
Copy Markdown
Contributor

Bumps vitest from 4.1.11 to 5.0.0.

Release notes

Sourced from vitest's releases.

v5.0.0

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

... (truncated)

Commits
  • f441c6f chore: release v5.0.0 (#11130)
  • d46a747 fix: treat test.describe as a suite during static collection (#11128)
  • 584cf30 fix: add a warning if inline project has duplicate plugins due to unexpected ...
  • f08ce4b fix: apply queued mocks from doMock() in queue order (fixes #10706) (#11127)
  • 897f51f chore: release v5.0.0-rc.4 (#11107)
  • 1339b06 chore(deps): update all non-major dependencies (#11104)
  • 51e9494 feat!: parse files statically in vitest list by default (#11088)
  • 2122ffd fix: propagate --maxWorkers to projects (#11102)
  • dc10f5f fix(browser): report the action error when a task times out (#11101)
  • d4fe198 feat: promote clearCache out of experimental (#11086)
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Sep 17, 2026
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 17, 2026

Copy link
Copy Markdown

Deploying podnotes with  Cloudflare Pages  Cloudflare Pages

Latest commit: e3ebae7
Status: ✅  Deploy successful!
Preview URL: https://a6c9a6c9.podnotes.pages.dev
Branch Preview URL: https://dependabot-npm-and-yarn-vite.podnotes.pages.dev

View logs

@dependabot dependabot Bot added the javascript Pull requests that update javascript code label Sep 17, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not merge. This is a Dependabot build(deps-dev) major bump of Vitest 4.1.115.0.0. The diff is only package.json + package-lock.json, and the title will not cut a plugin release — but GitHub Test is already red, so this is not a drop-in upgrade.

CI regression (blocking)

Test / Type check failed before lint/build/test ran. tsc --project tsconfig.test.json --noEmit reports dozens of errors such as:

  • Property 'toBeInTheDocument' does not exist on type 'Assertion<void, HTMLElement>'
  • same for toBeDisabled, toHaveClass, toBeVisible, toHaveAttribute

in PodcastView.integration.test.ts, TopBar.test.ts, ReorderQueue.test.ts, Image.test.ts, Progressbar.test.ts, PlaylistManager.test.ts, and PodcastResultCard.test.ts.

Why

Vitest 5 inlined expect and changed matcher types to Assertion<R, T> / Matchers<R, T> (R is the return type, T is the received value). It also stopped reading jest.Matchers. @testing-library/jest-dom@7.0.1 still augments the old one-parameter Assertion<T>, so those matchers disappear from TypeScript even though runtime registration might still work.

The current setup also imports @testing-library/jest-dom rather than @testing-library/jest-dom/vitest. That was enough under Vitest 4; it is not a Vitest 5-ready integration.

Other migration work this PR does not do

Prerequisites are already met (engines.node is ^22.22.2, Vite is ^8.2.2). The remaining 5.0 breaks that can still hit this suite after types are fixed:

  • clearMocks now defaults to true (vi.clearAllMocks() before each test). Shared vi.fn() history across tests will change.
  • Unawaited .resolves / .rejects now fail the test.
  • vi.mock / vi.hoisted / vi.unmock now throw if they are not at module top level (current uses look top-level, but that needs a full run to confirm).

What a mergeable upgrade needs

A dedicated Vitest 5 migration, not this lockfile-only bump:

  1. Switch the setup import to @testing-library/jest-dom/vitest and ship Matchers<R, T> / Assertion<R, T> augmentations (jest-dom 7.0.1 types on main still use Assertion<T>).
  2. Re-run npm ci, lint, format:check, typecheck, build, test (and svelte-check) on Node 22.
  3. Review mock-call assertions against the new clearMocks default; set clearMocks: false only if we intentionally keep v4 behavior.
  4. Keep GitHub Test green.

Until that lands, leave this PR unmerged. @dependabot ignore this major version is reasonable until jest-dom types catch up.

Open in Web View Automation 

Sent by Cursor Automation: Dependabot PRs

Comment thread package.json
"typescript": "6.0.3",
"vite": "^8.2.2",
"vitest": "^4.1.11",
"vitest": "^5.0.0",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the blocking line. Vitest 5 changes Assertion to Assertion<R, T> and stops reading jest.Matchers. @testing-library/jest-dom@7.0.1 still augments Assertion<T>, which is why tsconfig.test.json typecheck fails on toBeInTheDocument / toBeDisabled / similar matchers across the Svelte component tests. A version pin here is not enough; the upgrade needs a matcher-type + setup-file migration and a green Test run.

Bumps [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) from 4.1.11 to 5.0.0.
- [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.0/packages/vitest)

---
updated-dependencies:
- dependency-name: vitest
  dependency-version: 5.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/vitest-5.0.0 branch from de2b0a6 to e3ebae7 Compare September 17, 2026 12:29

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants