You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Vitest Browser Mode in Vitest 5 no longer serves /mockServiceWorker.js automatically
#2787
Someone already reported this to Vitest at vitest-dev/vitest#11230 and the answer seems to be that /mockServiceWorker.js was always considered an internal API and was never officially supported, so this is not even considered a BC break from Vitest's PoV, and hence doesn't even warrant a mention in the Vitest 5 migration guide.
It'd be great to get some official guidance on how to use Vitest 5's Browser Mode with MSW.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Just a heads up that the recipe at https://mswjs.io/docs/recipes/vitest-browser-mode/ no longer works for Vitest Browser Mode in Vitest 5.
Someone already reported this to Vitest at vitest-dev/vitest#11230 and the answer seems to be that
/mockServiceWorker.jswas always considered an internal API and was never officially supported, so this is not even considered a BC break from Vitest's PoV, and hence doesn't even warrant a mention in the Vitest 5 migration guide.It'd be great to get some official guidance on how to use Vitest 5's Browser Mode with MSW.
All reactions