Repository navigation
chore(deps-dev): update dependency msw to v3 - #1564
Merged
Merged
Conversation
renovate
Bot
force-pushed
the
renovate/msw-3.x
branch
from
October 14, 2026 06:57
a2fd573 to
17fe753
Compare
Contributor
📦 Bundle Size Report
Size Limits
Largest Files (Top 5)
View All Files (291 total)
✅ Bundle size check passed |
Contributor
|
Deploy preview for remote-flows ready!
Deployed with vercel-action |
Contributor
|
Deploy preview for adp-cost-calculator ready!
Deployed with vercel-action |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 17fe753. Configure here.
- onUnhandledRequest was renamed to onUnhandledFrame, which fixes the type-check (lint CI job) failure - scope the contractor schema-version handlers to their own country so a request from a neighbouring test can't satisfy them - assert the job-title abort on the signal passed to fetch, since msw v3 no longer reflects the client abort on request.signal in this path Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Contributor
📊 Coverage Report✅ Coverage increased! 🎉
Detailed BreakdownLines Coverage
Statements Coverage
Functions Coverage
Branches Coverage
✅ Coverage check passed |
gabrielseco
approved these changes
Oct 14, 2026
Merged
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.

This PR contains the following updates:
2.15.0→3.0.2Release Notes
mswjs/msw (msw)
v3.0.2Compare Source
v3.0.2 (2026-10-03)
Bug Fixes
virtual:mswimports in vitest (#2802) (e73c381) @kettanaitov3.0.1Compare Source
v3.0.1 (2026-09-30)
Bug Fixes
CONNECTrequests as the transport mechanism (#2796) (7cad86a) @kettanaitov3.0.0Compare Source
v3.0.0 (2026-09-28)
2bb4342) @kettanaito @Andaristmsw/nativeis removed in favor of@msw/react-native.worker.stop()returns a Promise (#2724). Awaiting it is relevant only for in-flight critical scenarios.graphqlis now exported asmsw/graphql(#2691). GraphQL is now handled as a proper optional peer dependency.handleRequest()utility. Please use thedefineNetwork()API instead.GraphQLLinkHandlerstype has been renamed toGraphQLLink.file://requests now throw in Node.js as they normally do (not supported byfetch).Content-Lengthrequest header is now removed bybypass().fetch()now throw in Node.js as they normally do (not supported byfetch).connectionlife cycle event has been renamed towebsocket:connection(#2783).onUnhandledRequestoption has been renamed toonUnhandledFrame.setTimeoutto circumvent fake timers in test runners. You should advance the fake timers normally for delayed mocked responses to resolve.request.headers.get('cookie')in the handlers. It returnsnullin all environments. Please use thecookiesresolver argument to have cookie-based logic.Features
delayorpassthrough, from the newmsw/utilsentrypoint for smaller footprint on your bundle.path-to-regexpto@msw/url(#2678).graphqlpath-to-regexppicocolorsstatusesstrict-event-emitterwebsocket:errorlife cycle event to listen to WebSocket connection errors (#2784).Bug fixes
beforeunloadlistener would unregister the MSW worker (#1105).maxWorkers: 1(#2726).worker.stop()(#2724, #2597).localStoragewould cause a maximum quota exceeded errors.Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.
Note
Medium Risk
Major MSW bump can change request matching and interception across the test suite; MSW 3 requires Node ≥22.12 while
package.jsonstill allows Node ≥20, which may break installs or tests on older Node in CI.Overview
Upgrades the MSW dev dependency from 2.15.0 to 3.0.2, with lockfile updates for MSW’s new dependency graph (e.g.
@msw/url, updated interceptors, Node ≥22.12 for MSW).Test harness changes for MSW v3:
server.listennow usesonUnhandledFrameinstead ofonUnhandledRequest. Contractor onboarding schema tests use explicit country codes in handler URLs (PRT/DEU/USA) instead of*wildcards. The job-title eligibility abort test asserts cancellation viafetchspy +AbortSignalrather thanrequest.signalinside the MSW handler.Reviewed by Cursor Bugbot for commit 80c60bf. Bugbot is set up for automated code reviews on this repo. Configure here.