Skip to content

chore(deps-dev): bump vitest from 1.6.1 to 4.0.18#14

Open
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/vitest-4.0.18
Open

chore(deps-dev): bump vitest from 1.6.1 to 4.0.18#14
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/vitest-4.0.18

Conversation

@dependabot
Copy link
Copy Markdown

@dependabot dependabot Bot commented on behalf of github Mar 5, 2026

Bumps vitest from 1.6.1 to 4.0.18.

Release notes

Sourced from vitest's releases.

v4.0.18

   🚀 Experimental Features

   🐞 Bug Fixes

    View changes on GitHub

v4.0.17

   🚀 Experimental Features

   🐞 Bug Fixes

... (truncated)

Commits
Maintainer changes

This version was pushed to npm by [GitHub Actions](https://www.npmjs.com/~GitHub Actions), a new releaser for vitest since your current version.


Dependabot compatibility score

You can trigger a rebase of this PR 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)

Summary by cubic

Upgrade vitest to v4 (package range ^4.1.0) for the latest fixes and features in our test runner. Dev-only change with no runtime impact.

  • Migration
    • Install and run the test suite to surface breaking changes.
    • Update vitest config or CLI flags if deprecations appear.
    • Verify browser mode, coverage, and custom reporters still work; update snapshots if needed.

Written for commit 90c2706. Summary will update on new commits.

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Mar 5, 2026
Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

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

1 issue found across 1 file

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="package.json">

<violation number="1" location="package.json:69">
P1: Vitest 4.0 requires Node.js >= 20.0.0, but the project's `engines` field allows Node >= 18.0.0. This version bump will break tests for anyone running Node 18 or 19, which the project currently supports. Either bump the `engines.node` requirement to `>=20.0.0`, or keep vitest at a compatible version.

Additionally, this is a jump across three major versions (1.x → 4.x), which includes significant breaking changes to mocking behavior, coverage configuration (`coverage.all` removed), test exclusion defaults, and more. The test suite and `vitest.config.ts` should be validated against the [migration guide](https://vitest.dev/guide/migration.html).</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

Comment thread package.json Outdated
"tsx": "^4.7.0",
"typescript": "^5.3.0",
"vitest": "^1.2.0"
"vitest": "^4.0.18"
Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai Bot Mar 5, 2026

Choose a reason for hiding this comment

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

P1: Vitest 4.0 requires Node.js >= 20.0.0, but the project's engines field allows Node >= 18.0.0. This version bump will break tests for anyone running Node 18 or 19, which the project currently supports. Either bump the engines.node requirement to >=20.0.0, or keep vitest at a compatible version.

Additionally, this is a jump across three major versions (1.x → 4.x), which includes significant breaking changes to mocking behavior, coverage configuration (coverage.all removed), test exclusion defaults, and more. The test suite and vitest.config.ts should be validated against the migration guide.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At package.json, line 69:

<comment>Vitest 4.0 requires Node.js >= 20.0.0, but the project's `engines` field allows Node >= 18.0.0. This version bump will break tests for anyone running Node 18 or 19, which the project currently supports. Either bump the `engines.node` requirement to `>=20.0.0`, or keep vitest at a compatible version.

Additionally, this is a jump across three major versions (1.x → 4.x), which includes significant breaking changes to mocking behavior, coverage configuration (`coverage.all` removed), test exclusion defaults, and more. The test suite and `vitest.config.ts` should be validated against the [migration guide](https://vitest.dev/guide/migration.html).</comment>

<file context>
@@ -66,7 +66,7 @@
     "tsx": "^4.7.0",
     "typescript": "^5.3.0",
-    "vitest": "^1.2.0"
+    "vitest": "^4.0.18"
   },
   "packageManager": "pnpm@10.28.2",
</file context>
Fix with Cubic

Bumps [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) from 1.6.1 to 4.0.18.
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Commits](https://github.com/vitest-dev/vitest/commits/v4.0.18/packages/vitest)

---
updated-dependencies:
- dependency-name: vitest
  dependency-version: 4.0.18
  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-4.0.18 branch from dc05982 to 90c2706 Compare March 17, 2026 18:35
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.

0 participants