logaretm / villus

🏎 A tiny and fast GraphQL client for Vue.js
https://villus.dev
MIT License
790 stars 31 forks source link

Question: Villus with Mock Service Worker (msw) #200

Closed JarvisH closed 1 year ago

JarvisH commented 1 year ago

Does Villus work with mock service worker? I tried it out, but msw did not intercept any requests.

logaretm commented 1 year ago

Yep, villus own tests are written with MSW. You may face some difficulties intercepting batched requests because MSW does not support them but check villus tests for a workaround if you are using batch plugin.