msw
3.0.7 · 18 Nov 2026MIT36M / weekRepositoryHomepagenpmAtom feed
Your version
0.49.3 is the newest release of 0.20.x.
In short
1 new1 fixed
Release note
Features
Adds
graphql.linkrequest handler that allows to mock GraphQL operations on per-endpoint basis (#315, #319).
import { setupWorker, graphql } from 'msw'
const github = graphql.link('https://api.github.com/graphql')
const stripe = graphql.link('https://api.stripe.com/graphql')
const worker = setupWorker(
github.query('GetUser', resolver),
stripe.mutation('Payment', resolver),
)
worker.start()Bug fixes
ERROR in node_modules/msw/lib/types/context/cookie.d.ts:1:8 - error TS1192: Module '"/node_modules/@types/cookie/index"' has no default export.
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.