How can i use querystring parameters with msw mock api responses? #28459
Unanswered
OwenPattison
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
I am trying to achieve something that I consider a common task, having a component call an API that can refresh/update data when the querystring changes.
Trying to achieve this in storybook has been very difficult first to find documentation around doing such a thing and secondly then trying to implement something.
For context I am using Vue3, Storybook 8 with msw to mock API response currently and assumed if I had an API request with a querystring, given I had a matching msw handler for this URL + querystring the response would be picked up, however, this does not seem to be the case.
I have looked at several solutions to the problem,
I would appreciate any guidance / updated documentation I have missed / not been able to find easily to achieve the above
Additional information
Create a reproduction
No response
Beta Was this translation helpful? Give feedback.
All reactions