msw
3.0.7 · 18 Nov 2026MIT36M / weekRepositoryHomepagenpmAtom feed
0.49.3 is the newest release of 0.16.x.
In short
5 new1 fixed
Release note
Features
GraphQL requests are now being printed into browser’s console using a proper format (operation name / response status) (#161, #174)
Each custom request handler can have its own
logfunction that controls what and how gets printed into browser’s console for introspection:
// my-handler.js
export const myHandler = () => {
return {
log(req, res, handler) {
console.log('%s %s', req.method, req.url.href)
}
}
}The information available in the log function:
req, intercepted request instance;res, resolved mocked response object;handler, exact request handler that captured this request.
Bug fixes
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.