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
Would be great to update to use msw v2, which has been out for approx 8 months. I was getting some weird issues and worked out it was because we're on v2 and this lib is only v1.
And generally for integration it would also be nice if you could optionally pass in an existing MSW server instance for this lib to reuse rather than creating it's own instance. i.e. as per recommendations from msw maintainer: mswjs/msw#821
Thanks!
The text was updated successfully, but these errors were encountered:
Have created PR. Instead of passing an msw server I exported the handler creation logic. Existing behaviour is unchanged but for my use case with my own server I wouldn't call jwksMock.start() any more. I already have my own msw server listening and I add the jwks handler to it with server.use(jwksMock.jwksHandler()).
Make sense?
levino
changed the title
Support for msw v2
Update msw and allow using existing msw server
Jul 17, 2024
Would be great to update to use msw v2, which has been out for approx 8 months. I was getting some weird issues and worked out it was because we're on v2 and this lib is only v1.
And generally for integration it would also be nice if you could optionally pass in an existing MSW server instance for this lib to reuse rather than creating it's own instance. i.e. as per recommendations from msw maintainer: mswjs/msw#821
Thanks!
The text was updated successfully, but these errors were encountered: