valendres / playwright-msw

A Mock Service Worker API for Playwright
MIT License
162 stars 22 forks source link

fix: unknown error code "error" when used with msw@0.49.3 #57

Closed valendres closed 1 year ago

valendres commented 1 year ago

This PR resolves https://github.com/valendres/playwright-msw/issues/54

Root cause: MSW was updated to use Emitter from strict-event-emitter in 0.49.3 which broke compatibility with playwright-msw.

Solution: Update playwright-msw to use the same Emitter.

Testing notes: This change has been successfully tested with the following MSW versions: