Skip to content

chore(deps-dev): bump vitest from 2.1.9 to 4.1.11 in the npm_and_yarn group across 1 directory - #33

Merged
ManningWorks merged 3 commits into
mainfrom
dependabot/npm_and_yarn/npm_and_yarn-0d65bea298
Sep 18, 2026
Merged

ManningWorks merged 3 commits into
mainfrom
dependabot/npm_and_yarn/npm_and_yarn-0d65bea298

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 8, 2026

Copy link
Copy Markdown
Contributor

Bumps the npm_and_yarn group with 1 update in the / directory: vitest.

Updates vitest from 2.1.9 to 4.1.11

Release notes

Sourced from vitest's releases.

v4.1.11

   🐞 Bug Fixes

    View changes on GitHub

v4.1.10

   🐞 Bug Fixes

    View changes on GitHub

v4.1.9

🐞 Bug Fixes

View changes on GitHub

v4.1.8

   🐞 Bug Fixes

    View changes on GitHub

v4.1.7

   🐞 Bug Fixes

    View changes on GitHub

... (truncated)

Commits
  • 9bd8d46 chore: release v4.1.11 (#10995)
  • 9851dbc fix(browser): trigger playwright/chromium gc on lower disk availability [back...
  • db616d2 chore: release v4.1.10 (#10718)
  • bae52b5 fix(vm): fix external module resolve error with deps optimizer query for enco...
  • a7a61e7 chore: release v4.1.9 (#10598)
  • 934b0f5 fix(pool): prevent test run hang on worker crash (#10543) [backport to v4] (#...
  • 7fb2965 fix(browser): wait for orchestrator readiness before resolving browser sessio...
  • a518019 fix: fix importOriginal with optimizer and query import [backport to v4] (#...
  • e61f2dd chore: release v4.1.8
  • e4067b3 fix(browser): disable client cdp API when allowWrite/allowExec: false [ba...
  • 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 <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions
    You can disable automated security fix PRs for this repo from the Security Alerts page.

Bumps the npm_and_yarn group with 1 update in the / directory: [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest).


Updates `vitest` from 2.1.9 to 4.1.11
- [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.11/packages/vitest)

---
updated-dependencies:
- dependency-name: vitest
  dependency-version: 4.1.11
  dependency-type: direct:development
  dependency-group: npm_and_yarn
...

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 Sep 8, 2026
@vercel

vercel Bot commented Sep 8, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
projex-docs Ready Ready Preview Sep 18, 2026 10:31pm UTC

vitest 4 boots against vite 5 but its module-runner import fails
(ERR_PACKAGE_PATH_NOT_EXPORTED). vitest 4's wide vite peer range let
pnpm dedupe to the vite 5 that vitepress pins for packages/docs, so
core gets its own vite@^7. @vitest/coverage-v8 must match the vitest
major (was 2.1.8).

Refs #33
- node:fs is no longer automocked into vi.fn()s under vitest 4;
  bare vi.mock('node:fs') left real fs in place, so every
  vi.mocked(existsSync) threw. Replaced with explicit factories
  spreading importOriginal and overriding only the stubbed fns.
- vi.restoreAllMocks no longer resets factory vi.fn() mocks (only
  spyOn spies), so mock calls leaked between tests. Use
  vi.resetAllMocks, the v2 restore behaviour for these files.
- tag command tests @vitest-environment node: the jsdom environment
  breaks node:fs mocking under vitest 4, and these tests are pure
  CLI logic that never needed a DOM.

62 files, 1036/1036 tests green, coverage thresholds hold.

Refs #33
@coderabbitai

coderabbitai Bot commented Sep 18, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 63d49b14-59c8-4323-bb04-d1caf8a9e787

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@ManningWorks

Copy link
Copy Markdown
Owner

Pushed two commits on top of the bump — the vitest 2 → 4 jump needed migration work before the suite would run:

38786a7 add vite and match coverage-v8 to vitest 4
The original bump left @vitest/coverage-v8 at 2.1.8 and no direct vite dep. Vitest 4 booted against the vite 5.4.21 that vitepress pulls in for packages/docs (vitest 4's wide vite peer range lets pnpm dedupe to it) and died at startup with ERR_PACKAGE_PATH_NOT_EXPORTED: './module-runner'. Core now gets its own vite@^7, and coverage-v8 matches the vitest major.

b4d8cdd migrate command tests to vitest 4 mocking

  • vi.mock('node:fs') automock no longer replaces builtins with vi.fn()s in vitest 4 — swapped for explicit factories that spread importOriginal and override only the stubbed functions.
  • vi.restoreAllMocks() no longer resets factory mocks (spyOn spies only), which leaked mock call history between tests — switched those hooks to vi.resetAllMocks(), the v2-equivalent behavior.
  • Command tests are tagged @vitest-environment node: the jsdom environment breaks node:fs mocking under vitest 4, and these CLI tests never needed a DOM.

Full suite green locally and in CI: 62 files, 1036/1036 tests, coverage thresholds hold.

@ManningWorks
ManningWorks merged commit 007ecfe into main Sep 18, 2026
7 checks passed
@dependabot
dependabot Bot deleted the dependabot/npm_and_yarn/npm_and_yarn-0d65bea298 branch September 18, 2026 22:55

This branch was successfully deployed

1 active deployment
Preview — b4d8cddd Deployed Sep 18, 2026 by vercel[bot]
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.

1 participant