Pass data to MSW handlers, like the create fake data functions. #1062
Samuel-Morgan-Tyghe
started this conversation in
Ideas
Replies: 1 comment 4 replies
-
I need an easy way to extend kubb msw looking at the handlers they are not functions, so this may be difficult to intergrate. currently i have to manually add a new handler, pass in generateResponse('hardcoded data') and its quite tedius. but what i can do to shorten this is using generatedHandler.info.path for the path of the new handler Bottom line wouldnt it be cleaner to be able to reference the handler and modify it than to replicate it. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So theres alot of uses for passing in hardcoded values to our fake data, but to utilize this we then have to pass it into a handler.
why not pass data directly into the handler into the handler?
Beta Was this translation helpful? Give feedback.
All reactions