Skip to content

build(deps-dev): bump vitest from 4.1.11 to 5.0.2 - #339

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

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

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Bumps vitest from 4.1.11 to 5.0.2.

Release notes

Sourced from vitest's releases.

v5.0.2

   🐞 Bug Fixes

    View changes on GitHub

v5.0.1

   🚀 Features

   🐞 Bug Fixes

... (truncated)

Commits

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

cloudflare-workers-and-pages Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

Deploying podnotes with  Cloudflare Pages  Cloudflare Pages

Latest commit: d132803
Status: ✅  Deploy successful!
Preview URL: https://4b1a81b2.podnotes.pages.dev
Branch Preview URL: https://dependabot-npm-and-yarn-vite-o2o1.podnotes.pages.dev

View logs

@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.

Requesting changes. Do not merge this lockfile-only Vitest 5 bump.

This is a semver-major deps-dev update (vitest 4.1.11 → 5.0.1). It is the same blocker as closed #336 (5.0.0): 5.0.1 does not fix the matcher type mismatch, so GitHub Test is already red.

What is fine

  • Diff is package.json + package-lock.json only.
  • npm ci on Node 22.22.2 succeeds and does not rewrite the lockfile.
  • npm run lint and npm run format:check pass.
  • npm audit --omit=dev is clean (remaining highs are the same sharp / miniflare / wrangler docs-deploy chain as master).
  • Runtime Vitest 5.0.1: 78 files / 1152 tests passed when typecheck is skipped.
  • Production plugin code is unaffected (devDependency; not in main.js).
  • Title is build(deps-dev):, so this would not cut a plugin release.

Blocker: typecheck / svelte-check / CI Test
npm run typecheck (tsconfig.test.json) and svelte-check --fail-on-warnings both fail with 42 errors in 7 files. GitHub Test failed at the typecheck step, so npm run test never reaches Vitest in CI.

Missing matchers: toBeInTheDocument, toBeDisabled, toHaveClass, toHaveAttribute, toBeVisible on Assertion<void, HTMLElement>.

Cause: Vitest 5 inlined expect and changed matcher types to two-parameter Assertion<R, T> / Matchers<R, T>. Latest @testing-library/jest-dom@7.0.1 (and current main) still augments one-parameter Assertion<T>. TypeScript will not merge those, so tsconfig.test.json types (vitest/globals + @testing-library/jest-dom) no longer attach. Switching setup from @testing-library/jest-dom to @testing-library/jest-dom/vitest does not fix this until jest-dom updates the declaration arity.

Other Vitest 5 items for a dedicated migration (not this PR)

  • clearMocks now defaults to true (runtime suite still passed; decide explicitly in vitest.config.ts).
  • Unawaited .resolves / .rejects now fail (this suite already awaits them).
  • Node / Vite prerequisites are already met (Node 22, Vite 8.3.0).

Required path
Do not land this Dependabot-only major. Open a dedicated migration that:

  1. Adds a local declare module "vitest" ambient matching Assertion<R, T> (or waits for a jest-dom release that does).
  2. Makes clearMocks an explicit config choice.
  3. Passes npm run typecheck, npm run test (svelte-check + Vitest), and GitHub Test.
Open in Web View Automation 

Sent by Cursor Automation: Dependabot PRs

Comment thread package.json Outdated
"typescript": "6.0.3",
"vite": "^8.3.0",
"vitest": "^4.1.11",
"vitest": "^5.0.1",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Vitest 5.0.1 is still a breaking major versus 4.1.11. This repo’s tsconfig.test.json pulls in @testing-library/jest-dom types, and 7.0.1 still augments one-parameter Assertion<T> while Vitest 5 exports Assertion<R, T>. That mismatch is why npm run typecheck / svelte-check fail (42 errors) and GitHub Test is red, even though a direct vitest --run passes 1152 tests.

Do not merge this pin by itself. A dedicated migration needs a two-parameter ambient matcher declaration (jest-dom main has not shipped one) plus an explicit clearMocks decision — Vitest 5 defaults it to true.

@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/vitest-5.0.1 branch from e47c4e5 to 388139c Compare September 24, 2026 12:29
Bumps [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) from 4.1.11 to 5.0.2.
- [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.2/packages/vitest)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot changed the title build(deps-dev): bump vitest from 4.1.11 to 5.0.1 build(deps-dev): bump vitest from 4.1.11 to 5.0.2 Oct 3, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/vitest-5.0.1 branch from 388139c to d132803 Compare October 3, 2026 15:06

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