Skip to content

chore(deps-dev): bump vitest from 2.1.9 to 4.1.6#52

Merged
sven-rausch merged 1 commit into
mainfrom
dependabot/npm_and_yarn/vitest-4.1.5
May 12, 2026
Merged

chore(deps-dev): bump vitest from 2.1.9 to 4.1.6#52
sven-rausch merged 1 commit into
mainfrom
dependabot/npm_and_yarn/vitest-4.1.5

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Apr 28, 2026

Bumps vitest from 2.1.9 to 4.1.6.

Release notes

Sourced from vitest's releases.

v4.1.6

   🐞 Bug Fixes

   🏎 Performance

    View changes on GitHub

v4.1.5

   🚀 Experimental Features

   🐞 Bug Fixes

    View changes on GitHub

v4.1.4

   🚀 Experimental Features

   🐞 Bug Fixes

... (truncated)

Commits
  • a8fd24c chore: release v4.1.6
  • 18af98c fix(browser): simplify orchestrator otel carrier (#10285)
  • 3188260 feat(browser): provide project reference in ToMatchScreenshotResolvePath (#...
  • e399846 chore: release v4.1.5
  • 7dc6d54 Revert "fix: respect diff config options in soft assertions (#8696)"
  • 9787ded fix: respect diff config options in soft assertions (#8696)
  • 325463a fix(ast-collect): recognize _vi_import prefix in static test discovery (#10...
  • 0e0ff41 feat(coverage): istanbul to support instrumenter option (#10119)
  • 663b99f fix: alias agent reporter to minimal (#10157)
  • 122c25b fix: fix vi.defineHelper called as object method (#10163)
  • 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 @github
Copy link
Copy Markdown
Contributor Author

dependabot Bot commented on behalf of github Apr 28, 2026

Labels

The following labels could not be found: dependencies, javascript. Please create them before Dependabot can add them to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

@dependabot dependabot Bot changed the title chore(deps-dev): bump vitest from 2.1.9 to 4.1.5 chore(deps-dev): bump vitest from 2.1.9 to 4.1.6 May 12, 2026
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/vitest-4.1.5 branch from 1f237f7 to 4c35af3 Compare May 12, 2026 09:58
sven-rausch pushed a commit that referenced this pull request May 12, 2026
…test-4-compat

PR #52 (vitest 2.1.9 -> 4.1.5) failt mit:
  Error: vi.spyOn() can only spy on a function. Received undefined.
  at tests-frontend/editor-doors.test.js:143:25
  at tests-frontend/editor-drag.test.js:181:25

Root-Cause: happy-dom (egal ob 15 oder 20) definiert window.alert nicht
default-mässig. In vitest 2 hat vi.spyOn das stillschweigend akzeptiert
(implizite Function-Erstellung), vitest 4 prüft strenger und wirft
"can only spy on a function".

Fix: beide Aufrufe von `vi.spyOn(window, "alert").mockImplementation(...)`
durch `vi.stubGlobal("alert", vi.fn())` ersetzt. `stubGlobal` arbeitet
auf undefined-Globals und ist forward-compatible (existiert seit
vitest 0.31). Cleanup via `vi.unstubAllGlobals()` statt `mockRestore`.

Damit kann PR #52 nach Dependabot-Rebase grün durchlaufen.

Lokal-Test (vitest 2.1.9): tests-frontend/editor-doors.test.js +
tests-frontend/editor-drag.test.js — 32/32 grün. Prettier 3.3.3 OK.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@sven-rausch
Copy link
Copy Markdown
Member

@dependabot rebase

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

---
updated-dependencies:
- dependency-name: vitest
  dependency-version: 4.1.5
  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.1.5 branch from 4c35af3 to 6e8e935 Compare May 12, 2026 12:34
@sven-rausch sven-rausch merged commit 3cf04bc into main May 12, 2026
7 checks passed
@sven-rausch sven-rausch deleted the dependabot/npm_and_yarn/vitest-4.1.5 branch May 12, 2026 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant