Skip to content

chore(deps-dev): bump vitest from 1.6.1 to 4.1.0#27

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

chore(deps-dev): bump vitest from 1.6.1 to 4.1.0#27
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/vitest-4.1.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jun 1, 2026

Copy link
Copy Markdown

Bumps vitest from 1.6.1 to 4.1.0.

Release notes

Sourced from vitest's releases.

v4.1.0

Vitest 4.1 is out!

This release page lists all changes made to the project during the 4.1 beta. To get a review of all the new features, read our blog post.

   🚀 Features

... (truncated)

Commits
  • 4150b91 chore: release v4.1.0
  • 1de0aa2 fix: correctly identify concurrent test during static analysis (#9846)
  • c3cac1c fix: use isAgent check, not just TTY, for watch mode (#9841)
  • eab68ba chore(deps): update all non-major dependencies (#9824)
  • 031f02a fix: allow catch/finally for async assertion (#9827)
  • 3e9e096 feat(reporters): add agent reporter to reduce ai agent token usage (#9779)
  • 0c2c013 chore: release v4.1.0-beta.6
  • 8181e06 fix: hideSkippedTests should not hide test.todo (fix #9562) (#9781)
  • a8216b0 fix: manual and redirect mock shouldn't load or transform original module...
  • 689a22a fix(browser): types of getCDPSession and cdp() (#9716)
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by GitHub Actions, a new releaser for vitest since your current version.


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

Note

Medium Risk
Major-version test runner upgrade with no accompanying config or test fixes in the PR; runtime or assertion API changes could fail CI until validated.

Overview
Bumps the devDependency vitest from ^1.0.0 / 1.6.1 to ^4.1.0 in package.json and refreshes pnpm-lock.yaml accordingly. No application or test source files are modified in this diff—only the test runner toolchain.

The lockfile reflects Vitest 4’s dependency graph (e.g. @vitest/mocker, chai 6.x, dropped vite-node / tinypool paths from the v1 stack). Existing scripts (vitest run, vitest) and imports like those in src/hooks/index.test.tsx are unchanged here; CI should run pnpm test to confirm nothing breaks on the major upgrade. Vitest 4 also declares stricter Node engine requirements than v1; this repo’s CI already targets Node 24, which aligns with that.

Reviewed by Cursor Bugbot for commit 004ce0c. Bugbot is set up for automated code reviews on this repo. Configure here.

Bumps [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) from 1.6.1 to 4.1.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/v4.1.0/packages/vitest)

---
updated-dependencies:
- dependency-name: vitest
  dependency-version: 4.1.0
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Jun 1, 2026

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

🤖 AI Code Reviewer

Reviewed by 2 agents | Quality score: 42% | Review time: 115.1s

🟡 2 warnings. See inline comments.


🤖 Generated by AI Code Reviewer | Review ID: review-f960538d

Comment thread package.json
"typescript": "^5.3.0",
"vite": "^5.4.21",
"vitest": "^1.0.0"
"vitest": "^4.1.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.

🟡 Vitest 4.x peer-requires Vite ^6/7/8 but project pins Vite 5

vitest@4.1.0 declares a peer dependency of vite: ^6.0.0 || ^7.0.0 || ^8.0.0-0, but the project's devDependency is vite: ^5.4.21. The lockfile resolves this by passing vite@5.4.21 as an optional peer, which vitest accepts at runtime, but this is an unsupported combination. Vitest 4's internal Vite integration (module runner, HMR, transform pipeline) is designed and tested against Vite 6+. Subtle breakages—especially around module resolution, HMR, or the new @vitest/mocker vite plugin—may appear only at runtime or in CI, not at install time.

Suggested fix:

Either upgrade vite to ^6.0.0 alongside vitest@4.1.0, or pin vitest back to the latest 2.x release (which officially supports Vite 5) until a Vite 6 upgrade is planned.

Comment thread package.json
"typescript": "^5.3.0",
"vite": "^5.4.21",
"vitest": "^1.0.0"
"vitest": "^4.1.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.

🟡 Vitest peer dependency mismatch: vite@5 used with vitest@4 requiring vite@6+

vitest@4.1.0 declares a peer dependency of vite: ^6.0.0 || ^7.0.0 || ^8.0.0-0 (optional), but the project pins vite: ^5.4.21. The lockfile resolves this by passing vite@5.4.21 as the optional peer, which vitest@4 accepts at install time but may produce unexpected behaviour at runtime (e.g. module resolution, plugin APIs, or HMR internals that vitest@4 expects from vite@6). If vitest silently falls back to an internal bundled vite or uses incompatible APIs, test results could be unreliable or security-relevant code paths (e.g. source-map handling, module mocking) could behave differently than expected. This is a supply-chain / configuration risk rather than a direct vulnerability, but it can mask real test failures.

Suggested fix:

Either upgrade vite to ^6.0.0 to satisfy the declared peer requirement, or pin vitest to a version that officially supports vite@5 (e.g. vitest@1.x or vitest@2.x).

@meroreviewer

meroreviewer Bot commented Jun 1, 2026

Copy link
Copy Markdown

Documentation Review

The following documentation may need updates based on the changes in this PR:

  • 🟡 docs/: Static HTML docs in docs/ may need updating — architecture-impacting changes detected. On merge, update-docs will scan this directory and open a PR if any pages need to change.

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 004ce0c. Configure here.

Comment thread package.json
"typescript": "^5.3.0",
"vite": "^5.4.21",
"vitest": "^1.0.0"
"vitest": "^4.1.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.

Vitest four needs Vite six

High Severity

This change upgrades vitest to ^4.1.0 while vite remains at ^5.4.21. Vitest 4 requires Vite 6 or newer and no longer supports Vite 5, so pnpm test can fail or behave unpredictably with the current lockfile pairing.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 004ce0c. Configure here.

@dependabot @github

dependabot Bot commented on behalf of github Jun 8, 2026

Copy link
Copy Markdown
Author

Superseded by #29.

@dependabot dependabot Bot closed this Jun 8, 2026
@dependabot dependabot Bot deleted the dependabot/npm_and_yarn/vitest-4.1.0 branch June 8, 2026 17:31
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