Skip to content

chore(deps-dev): bump vitest from 3.2.4 to 4.1.0#816

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 3.2.4 to 4.1.0#816
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
Contributor

Bumps vitest from 3.2.4 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.

Bumps [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) from 3.2.4 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
@vercel

vercel Bot commented Jun 1, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
langfuse-js Ready Ready Preview Jun 1, 2026 9:47pm

Request Review

Comment thread package.json
"typedoc": "^0.28.9",
"typescript": "^5.3.0",
"vitest": "^3.2.4",
"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 removed the workspace config feature (defineWorkspace and auto-detection of vitest.workspace.{ts,js,json}), so after this bump vitest.workspace.ts is ignored/broken and the test:integration and test:e2e scripts (which run vitest run --project=integration / --project=e2e) will fail with "No projects matched the filter" because vitest.config.ts has no projects: field. To fix, migrate the two project entries from vitest.workspace.ts into a projects: [...] array inside vitest.config.ts and delete vitest.workspace.ts.

Extended reasoning...

What the bug is

Vitest 4 removed the workspace config feature. Per the Vitest 4 migration guide, defineWorkspace is no longer exported from vitest/config, and vitest.workspace.{ts,js,json} files are no longer auto-detected. Projects must instead be defined via the projects config option in vitest.config.ts.

This repo still has vitest.workspace.ts (lines 1–77) which imports { defineWorkspace } from "vitest/config" and defines two projects, integration and e2e. Meanwhile vitest.config.ts has no projects field — it is a single flat test config.

How it manifests

The package.json scripts at the heart of integration and e2e testing invoke project filters:

"test:integration": "pnpm run build && vitest run --project=integration",
"test:integration:watch": "pnpm run build && vitest --project=integration",
"test:e2e": "pnpm run build && vitest run --project=e2e"

After this PR is merged, both scripts fail with Error: No projects matched the filter "integration" (and the same for e2e), because Vitest 4 doesn't load the workspace file at all and no projects are configured in vitest.config.ts.

Why existing code doesn't prevent it

The workspace file is silently dropped by Vitest 4 — there is no startup error nudging the user toward the new API. The verifier reproduced this empirically: ./node_modules/.bin/vitest run --project=integration errors with No projects matched the filter "integration". Inspection of vitest@4.1.0's dist/config.d.ts and dist/config.js confirms that only defineConfig and defineProject are exported — defineWorkspace is gone.

Step-by-step proof

  1. Install this PR: pnpm install brings in vitest@4.1.0.
  2. Run pnpm run test:integration. The build step succeeds, then vitest run --project=integration is invoked.
  3. Vitest 4 reads vitest.config.ts — it contains no projects array.
  4. Vitest 4 does NOT scan for vitest.workspace.ts (this auto-detection was removed).
  5. The --project=integration filter has nothing to match → Vitest exits with Error: No projects matched the filter "integration".
  6. Same path for pnpm run test:e2e.

Impact

Two production scripts (test:integration, test:e2e) plus the corresponding watch script are broken. Any CI job or developer workflow that exercises the integration or e2e suites after this dependency bump will fail at the vitest invocation. The workspace file becomes dead code at best; at worst, if anything tries to import it directly, it throws because defineWorkspace is undefined.

How to fix

Migrate the two entries from vitest.workspace.ts into a projects: [...] array inside the test block of vitest.config.ts, then delete vitest.workspace.ts. Roughly:

// vitest.config.ts
export default defineConfig({
  test: {
    // existing root config...
    projects: [
      {
        test: { name: "integration", environment: "node", include: [...], setupFiles: [...] },
        resolve: { alias: { /* ... */ } },
      },
      {
        test: { name: "e2e", environment: "node", include: [...], setupFiles: [...], testTimeout: 30000 },
        resolve: { alias: { /* ... */ } },
      },
    ],
  },
});

@dependabot @github

dependabot Bot commented on behalf of github Jun 9, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #819.

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