Skip to content

chore(deps-dev): bump vitest from 4.1.11 to 5.0.0 in /src/frontend - #2637

Merged
vybe merged 5 commits into
devfrom
dependabot/npm_and_yarn/src/frontend/dev/vitest-5.0.0
Oct 1, 2026
Merged

vybe merged 5 commits into
devfrom
dependabot/npm_and_yarn/src/frontend/dev/vitest-5.0.0

Conversation

@dependabot

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

Copy link
Copy Markdown
Contributor

Bumps vitest from 4.1.11 to 5.0.0.

Release notes

Sourced from vitest's releases.

v5.0.0

Vitest 5 is officially out! This release focuses on performance and brings a lot of new features while fixing long-standing bugs. See our blog post for the official announcement.

   🚨 Breaking Changes

... (truncated)

Commits
  • f441c6f chore: release v5.0.0 (#11130)
  • d46a747 fix: treat test.describe as a suite during static collection (#11128)
  • 584cf30 fix: add a warning if inline project has duplicate plugins due to unexpected ...
  • f08ce4b fix: apply queued mocks from doMock() in queue order (fixes #10706) (#11127)
  • 897f51f chore: release v5.0.0-rc.4 (#11107)
  • 1339b06 chore(deps): update all non-major dependencies (#11104)
  • 51e9494 feat!: parse files statically in vitest list by default (#11088)
  • 2122ffd fix: propagate --maxWorkers to projects (#11102)
  • dc10f5f fix(browser): report the action error when a task times out (#11101)
  • d4fe198 feat: promote clearCache out of experimental (#11086)
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency frontend Frontend/UI changes labels Sep 8, 2026
Bumps [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) from 4.1.11 to 5.0.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/v5.0.0/packages/vitest)

---
updated-dependencies:
- dependency-name: vitest
  dependency-version: 5.0.0
  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/src/frontend/dev/vitest-5.0.0 branch from 66d05c4 to b45a2bd Compare September 16, 2026 14:57
…test 5 clears mock history before each test (#2637)

vitest 5 defaults `clearMocks` to true, so `vi.clearAllMocks()` runs
before every test. `clientPortal.js` registers its request/response
interceptors once, at import, so the four tests that read
`use.mock.calls[0]` inside the test body found an empty history.
Capture the registered handlers at module scope, before any clear.
Same handlers, same assertions; 137 files / 3090 tests green.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@vybe

vybe commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

merge-train: pushed a one-file fix to this branch (tests/unit/workspaceSession.spec.js). The four build failures were vitest 5's new clearMocks: true default: mock history is cleared before every test, and clientPortal.js registers its interceptors once at import, so use.mock.calls[0] was empty inside the test body. The spec now captures the registered handlers at module scope and the tests use those — same handlers, same assertions. Full unit suite locally under vitest 5.0.0: 137 files, 3090 tests, green.

trinity-ability and others added 2 commits October 1, 2026 11:46
…ing it — vitest 5's jsdom makes it getter-only (#2637)

Four '@vitest-environment jsdom' specs added on dev since this branch
forked shim localStorage with a plain 'globalThis.localStorage = {…}'.
Under vitest 5 the jsdom window exposes it as a getter-only accessor and
the assignment throws, so the files fail to load. Object.defineProperty
with configurable: true installs the same shim. 243 files / 4477 tests
green, vite build clean.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@vybe

vybe commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

merge-train: second push — the re-run build failed on four jsdom specs that landed on dev after this branch forked (portalAgentMemory, portalAgentDecisions, portalSuggestions, portalAgentRole): they shim localStorage with a plain globalThis.localStorage = {…}, and vitest 5's jsdom window exposes it as a getter-only accessor, so the files threw at load. Merged dev into the branch and switched those four to Object.defineProperty(globalThis, 'localStorage', { configurable: true, value: {…} }) — same shim. Locally under vitest 5.0.0 on the merged tree: 243 files / 4477 tests green, vite build clean. Note: because a human pushed to this branch, dependabot-auto-merge no longer fires (github.actor == 'dependabot[bot]'), so this and #2830 need a manual approve + merge once green.

…n/src/frontend/dev/vitest-5.0.0

# Conflicts:
#	src/frontend/package-lock.json
#	src/frontend/package.json
@vybe

vybe commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

merge-train: third push — #3100 and #2965 landed on dev and both touch src/frontend/package{,-lock}.json, so this went CONFLICTING. Merged dev in (6c9d52fee): package.json takes dev's side with vitest: ^5.0.0 kept; the lockfile is regenerated from this branch's lock with npm install --package-lock-only (npm 10/11 crash with edgesOut when reconciling from dev's lock). Drift vs dev's lock is vitest's own subtree plus in-range transitive patches (vite 8.3.1→8.3.2, rolldown 1.2.11→1.2.12, browserslist/caniuse-lite data). On the merged tree: npm ci, 243 files / 4477 tests green, vite build clean.

@vybe vybe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

merge-train: vitest 4→5 (a major, so held for a human by design). Three mechanical pushes on the branch: clearMocks capture, jsdom localStorage shim via defineProperty, merge of dev with a regenerated lockfile. build + regression diff + journey-smoke green on 4c1573d; 243 files / 4477 tests locally.

@vybe
vybe merged commit fd40d4b into dev Oct 1, 2026
23 checks passed
@dependabot
dependabot Bot deleted the dependabot/npm_and_yarn/src/frontend/dev/vitest-5.0.0 branch October 1, 2026 11:20
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 frontend Frontend/UI changes

2 participants