msw
3.0.7 · 18 Nov 2026MIT36M / weekRepositoryHomepagenpmAtom feed
0.49.3 is the newest release of 0.19.x.
In short
4 new3 fixed
Release note
Features
Adds a warning when using redundant query parameters in a request handler URL (#231, #233).
Throws an exception when running
setupWorkerin a NodeJS environment (#219).Throws an exception when running
setupServerin a browser environment (#214, #219).Adds a custom error message when calling
worker.start()and the worker script doesn’t exist (#237, #242).Exports GraphQL type annotations for
GraphQLMockedRequest,GraphQLMockedContext,GraphQLRequestPayload,GraphQLResponseResolvertypes (#213, #241).
Bug fixes
Sets the default realistic response time of
ctx.delay()to 5ms when run in Node environment (including jsdom) (#205).Fixes an issue that resulted into the response Promise to never resolve when using
jest.useFakeTimers()in your tests (#243).Fixes a bug that resulted into a request handler URL with query parameters to produce a false negative match with the identical actual request URL. Query parameters and hashes in a request handler URL no longer affect the matching process.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.