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
registerMswHandler() checks to see if there's existing route data, and if not proceeds to initialize it. However, this initialization happens asynchronously (due to L135), so two registrations happening concurrently might both think they're the first and initialize the data.
First, thanks to the contributors.
Because I found a behavior below, I created an issue.
on application with msw -> work.
on playwright (with playwright-msw) -> not work
To make it work on playwright, I need to reverse handlers array or overwrite by worker.use on test case.
Probably, playwright-msw's routing depends on path only?
https://github.com/valendres/playwright-msw/blob/main/packages/playwright-msw/src/router.ts
The text was updated successfully, but these errors were encountered: