nuxt-msw integrates MSW (Mock Service Worker) into a Nuxt project, allowing user to use it for API mocking during development. Most of the code can be directly shared with test mocks.
Features
🌲 Write once, use everywhere
🚀 Use MSW powerful mocking features in Nuxt development
â›° Intercept both server-side and client-side request, including $fetch, useFetch and any other api requests.
Description
nuxt-msw
integrates MSW (Mock Service Worker) into a Nuxt project, allowing user to use it for API mocking during development. Most of the code can be directly shared with test mocks.Features
$fetch
,useFetch
and any other api requests.Repository
https://github.com/shunnNet/nuxt-msw
npm
https://www.npmjs.com/package/@crazydos/nuxt-msw
Nuxt Compatibility
Nuxt 3