Industry standard API mocking for JavaScript.

The biggest change. The brightest change. Available for everyone to use. Migrate today and enjoy standard-driven API mocking!
🎉 Announcing MSW 2.0! 🎉 🌎 Migration guidelines: mswjs.io/docs/migrations/1.x… 📰 Release notes: github.com/mswjs/msw/release… 365+ days in development, 200+ commits, 40+ contributors involved. The future of API mocking is here, and it has never been brighter.
3
13
88
31,497
Mock Service Worker 🇺🇦 retweeted
You don't have to sponsor to help. Consider nominating MSW for the Open Source Endowement fund: endowment.dev/funding/ Thank you!
I am losing roughly $800 a month by working on MSW full-time while it's one of the most used projects in the ecosystem. Please, if MSW provides you any value, consider becoming a sponsor. I mean it when I say every contribution counts. Thank you ❤️ github.com/sponsors/mswjs
7
3
28
2,607
MSW has changed the way everybody mocks their APIs. Please help us make the project sustainable.
I am losing roughly $800 a month by working on MSW full-time while it's one of the most used projects in the ecosystem. Please, if MSW provides you any value, consider becoming a sponsor. I mean it when I say every contribution counts. Thank you ❤️ github.com/sponsors/mswjs
1
5
720
Mock Service Worker 🇺🇦 retweeted
Come learn component testing from me in person! Accessibility-first, beautifully set up, and running in a real browser with Vitest. One of my best selling workshops on Epic Web now live. 📆 October 5th, 9:00 🇨🇿 Prague More info: frontkon.tech/events/frontko…
2
5
1,141
Mock Service Worker 🇺🇦 retweeted
MSW add-on for Storybook is downloaded 1,539,807 times per week! That makes it one of the most used add-ons in the entire Storybook ecosystem. Pretty wild. And with the latest release, it's the best way to mock the network in your stories, too. github.com/mswjs/msw-storybo…
4
3
35
1,606
Mock Service Worker 🇺🇦 retweeted
If you let your agent write component tests for you, you're in BIG trouble. Why? Because agents were trained on prehistoric tests still using JSDOM. Yikes 🤢 Join me on 📆 October 5th in 🇨🇿 Prague for a live workshop to learn component testing in the real browser with Vitest.
1
2
15
1,044
Thank you, Forbes.
I never got to properly thank Forbes for compiling an annual list of companies using MSW. I'm not sure why they stopped at 500, but I'm still grateful!
451
Mock Service Worker 🇺🇦 retweeted
No way.
3
3
86
10,766
Mock Service Worker 🇺🇦 retweeted
Just got MSW CI builds from 10m to 1m thanks to @useblacksmith. Absolutely insane, look at this. Also a significant boost after migrating most tests from Playwright to Vitest Browser Mode. It proves times faster for me in every project.
6
1
56
4,470
Mock Service Worker 🇺🇦 retweeted
Hold on, what if...?
23
10
315
37,698
Mock Service Worker 🇺🇦 retweeted
MSW hits another big milestone: 200,000 repositories on GitHub depend on it for their tests and development. Thank you for choosing tools made with care ❤️
2
3
21
1,726
Mock Service Worker 🇺🇦 retweeted
May I have 1 minute of your time? You will not regret it. This is THE testing video I want you all to see. Might be hands-down the best video I've ever recorded.
1
5
21
3,369
Mock Service Worker 🇺🇦 retweeted
Huge news to Storybook developers using MSW: version 3.0 of our add-on has just been released! 🎉 github.com/mswjs/msw-storybo… This brings a new architecture to support both CSF3 and CSF4, fix some long-standing issues, become dependency-free, and a ton more.
2
5
38
2,111
Please help us make v3.0 better: vote on this.
If you're using MSW (@ApiMocking) in @reactnative, would you prefer "msw/native" to automatically include all the necessary polyfills for it to run? (e.g. URL, streams, etc).
3
1,063
This one's for the books.
I know very few people will appreciate it, but this is the most impactful thing that happened to API mocking in JavaScript in its entire history. github.com/mswjs/interceptor… Forget intercepting requests. Welcome socket-level network interception.
1
5
1,869
Mock Service Worker 🇺🇦 retweeted
Playing around with the first-class SMTP API in MSW. Please share your thoughts! Sharing some of the reasoning behind the API below.
5
1
17
2,129
Mock Service Worker 🇺🇦 retweeted
Great news for everyone building with SvelteKit! MSW now ships a first-class integration to add the network mocking capabilities to your SvelteKit projects. Check this out and give it a ⭐ github.com/mswjs/sveltekit
1
1
15
1,231
Mock Database Worker?
What if you could mock database connections regardless of your database client? No in-memory instances, no Dockers for simple unit tests. Explain to me why this is a bad idea.
3
956
Mock Service Worker 🇺🇦 retweeted
Thank you to @Spotify for supporting my work on MSW. You are a huge reason why API mocking is getting better for everybody on the web. This year, we are rolling out something that nobody has ever even tried to achieve before, and your support makes that possible. ❤️
7
7
169
8,423
Mock Service Worker 🇺🇦 retweeted
Last time I gave this workshop, the room was fully packed and the folks absolutely loved using Vitest to test their components directly in the real browser. 👉 Join me in-person to level up your React component tests! 🗓️ October 5th, FrontKon, Prague frontkon.tech/events/frontko…
4
7
1,863
Mock Service Worker 🇺🇦 retweeted
1,000 pull requests have been closed in MSW. What a journey. Here's to another 1,000! API mocking on the web has a lot to improve and I'll be bringing those improvements to your tests in the near future. Thank you to all the contributors who made this number possible. You rock.
1
25
1,044