chore(deps-dev): bump vitest from 2.1.9 to 4.1.6#52
Merged
Conversation
Contributor
Author
LabelsThe following labels could not be found: Please fix the above issues or remove invalid values from |
1f237f7 to
4c35af3
Compare
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>
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>
4c35af3 to
6e8e935
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps vitest from 2.1.9 to 4.1.6.
Release notes
Sourced from vitest's releases.
... (truncated)
Commits
a8fd24cchore: release v4.1.618af98cfix(browser): simplify orchestrator otel carrier (#10285)3188260feat(browser): provide project reference inToMatchScreenshotResolvePath(#...e399846chore: release v4.1.57dc6d54Revert "fix: respect diff config options in soft assertions (#8696)"9787dedfix: respect diff config options in soft assertions (#8696)325463afix(ast-collect): recognize _vi_import prefix in static test discovery (#10...0e0ff41feat(coverage): istanbul to supportinstrumenteroption (#10119)663b99ffix: aliasagentreporter tominimal(#10157)122c25bfix: fixvi.defineHelpercalled as object method (#10163)Maintainer changes
This version was pushed to npm by GitHub Actions, a new releaser for vitest since your current version.