Skip to content

chore(deps-dev): bump vitest from 4.1.11 to 5.0.0 - #465

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

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

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 7, 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 the dependencies Pull requests that update a dependency file label Sep 7, 2026
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>
@khuepm

khuepm commented Sep 10, 2026

Copy link
Copy Markdown
Owner

Verified and absorbed into #467 (branch chore/deps-batch-2026-09), together with #466 and #464 — the three share one lockfile.

This one needed a fix. apps/docs registered its Testing Library matchers through the bare @testing-library/jest-dom entry, which declares them on the global jest.Matchers interface. Vitest read that interface up to v4, so toBeInTheDocument and friends type-checked by accident; vitest 5 stopped reading it. Under 5.0.0 that produced 15 × TS2339 (toBeInTheDocument, toHaveAttribute, toHaveClass) across LinkRewriter.test.tsx and analytics-consent.test.tsx, failing typecheck and build while the tests themselves kept passing at runtime.

apps/studio already imported @testing-library/jest-dom/vitest, which is precisely why only one of the two jsdom apps broke. #467 brings docs in step.

The rest of vitest 5's breaking changes do not apply here, checked before running rather than after: no test.sequential/describe.sequential, no vi.mock nested inside a block (now a throw), no toThrow(''), no unawaited .resolves/.rejects (now a failure), and no test relying on mock call history surviving across tests — so the new clearMocks: true default is a no-op. Vite 8.2.2 and Node ≥ 22.22.2 already satisfy the raised floors.

Verified: full suite 14/14 on RUN v5.0.0 with zero cache hits — cms 2689 passed / 101 skipped, studio 383, docs 157, and the smaller packages unchanged; typecheck 18/18; build 11/11.

Closing in favour of #467.

@khuepm

khuepm commented Sep 10, 2026

Copy link
Copy Markdown
Owner

Superseded by #467, verified rather than assumed (the B36 lesson): git diff of every package.json line this PR adds or removes against #467 comes back empty, and #467 is green on all 15 checks. Dependabot branches are deleted on close, so recording here that nothing unique remained.

@khuepm khuepm closed this Sep 10, 2026
@dependabot @github

dependabot Bot commented on behalf of github Sep 10, 2026

Copy link
Copy Markdown
Contributor Author

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot
dependabot Bot deleted the dependabot/npm_and_yarn/vitest-5.0.0 branch September 10, 2026 22:13
khuepm added a commit that referenced this pull request Sep 13, 2026
chore(deps): batch #466 + #465 + #464; hold TypeScript 7
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant