Open underfisk opened 8 months ago
Looks like #468 was closed prematurely. It's nice that part of the features work with msw@v2 but now the generated example is incorrect and so are the docs. MSW got a major version bump for a reason as the API surface is totally different.
Happy to contribute here in a couple of days if no one gets to it before me.
Added a PR to solve this issue ☝🏻
Is your feature request related to a problem? Please describe.
msw plugin does not allow to pass
RequestHandlerOptions
on generated mocksDescribe the solution you'd like
The mocks should include the optional 3rd parameter
RequestHandlerOptions
which would enable us to provideonce
https://mswjs.io/docs/api/graphql#once (v2 API)Example of the current generated mock
Proposal