Mock Service Worker 3.0 ships as pure ESM and adds GraphQL subscription support
11/28/2026
Mock Service Worker is a JavaScript library that intercepts network requests and mocks APIs in browsers and Node.js, and is widely used for frontend and full-stack testing. Version 3.0 ships only an ESM build, supports Node.js v22, v24, and v26, reduces package size from 416KB to 234KB, and adds GraphQL subscription support and socket-based request interception. Users on v2 should consult the official 2.x to 3.x migration guide before upgrading.