valendres / playwright-msw

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

fix: updates server path to catch all #9

Closed marlonmarcello closed 2 years ago

marlonmarcello commented 2 years ago

Hi there 👋.

This PR updates the glob pattern for the server so we don't only intercept local routes.

For example, let's say your app makes calls to an external API and you'd like to mock that, at the moment you can't do that because /** is considered a relative path by Playwright.

Happy to tweak the commit, pr or anything you feel like doesn't fit the contribution standards 😊

marlonmarcello commented 2 years ago

Glad to help, thanks @valendres !