Hi guys!
After the recent update of msw to version 2.0.0 the msw-auto-mock became incompatible.
The first thing I noticed was the import incompatibility import { setupWorker, rest } from "msw";
Also instead of res() now we should use ({ request }) => new Response().
Hi guys! After the recent update of msw to version 2.0.0 the msw-auto-mock became incompatible.
The first thing I noticed was the import incompatibility
import { setupWorker, rest } from "msw";
Also instead ofres()
now we shoulduse ({ request }) => new Response()
.And so on, details can be found in the release - description https://github.com/mswjs/msw/releases/tag/v2.0.0
Do you have any plans to update msw-auto-mock for compatibility in the near future?
Thanks!