-
Notifications
You must be signed in to change notification settings - Fork 851
chore(deps): update dependency vitest to v4 #7379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: renovate/major-testing-dependencies
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-authored-by: mscolnick <2753772+mscolnick@users.noreply.github.com>
|
I have read the CLA Document and I hereby sign the CLA You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot. |
Co-authored-by: mscolnick <2753772+mscolnick@users.noreply.github.com>
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
d832a93 to
997192b
Compare
ad7b719 to
e08a1a1
Compare
81ccb1e to
51a19d3
Compare
📝 Summary
Updates vitest from v3.2.4 to v4.0.14 and fixes breaking changes in mock/constructor behavior.
🔍 Description of Changes
Vitest v4 changed how
vi.fn().mockImplementation()works withnew- function mocks no longer support constructor calls. This broke several test mocks.Fixes:
Constructor mocks - Replaced
vi.fn().mockImplementation()with actual class definitions for:Notificationmock indynamic-favicon.test.tsxWebSocketmock inwaitForWs.test.tsClipboardItemmock incommon.tsJSON.rawJSON compatibility - Added fallback in
json-parser.tsfor Node 20 environments whereJSON.rawJSONisn't available (Node 21+ only)Before (broken in v4):
After:
📋 Checklist
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.