chore(deps-dev): bump vitest from 4.1.11 to 5.0.0 in /src/frontend - #2637
Conversation
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>
66d05c4 to
b45a2bd
Compare
…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>
|
merge-train: pushed a one-file fix to this branch ( |
…n/src/frontend/dev/vitest-5.0.0
…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>
|
merge-train: second push — the re-run |
…n/src/frontend/dev/vitest-5.0.0 # Conflicts: # src/frontend/package-lock.json # src/frontend/package.json
|
merge-train: third push — #3100 and #2965 landed on |
vybe
left a comment
There was a problem hiding this comment.
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.
Bumps vitest from 4.1.11 to 5.0.0.
Release notes
Sourced from vitest's releases.
... (truncated)
Commits
f441c6fchore: release v5.0.0 (#11130)d46a747fix: treat test.describe as a suite during static collection (#11128)584cf30fix: add a warning if inline project has duplicate plugins due to unexpected ...f08ce4bfix: apply queued mocks from doMock() in queue order (fixes #10706) (#11127)897f51fchore: release v5.0.0-rc.4 (#11107)1339b06chore(deps): update all non-major dependencies (#11104)51e9494feat!: parse files statically in vitest list by default (#11088)2122ffdfix: propagate --maxWorkers to projects (#11102)dc10f5ffix(browser): report the action error when a task times out (#11101)d4fe198feat: promote clearCache out of experimental (#11086)