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
I propose adding support to @kubb/plugin-msw for passing either a data object or a function as a parameter to handlers. This would allow users to customize the behavior of handlers dynamically, making mocking and testing much more flexible.
Example
Here's an example implementation to illustrate the idea:
What is the problem this feature would solve?
I propose adding support to
@kubb/plugin-msw
for passing either adata
object or a function as a parameter to handlers. This would allow users to customize the behavior of handlers dynamically, making mocking and testing much more flexible.Example
Here's an example implementation to illustrate the idea:
Use Case
This would enable users to customize handlers as shown below:
Benefits
Reference
This feature is inspired by a similar capability in Orval.
The text was updated successfully, but these errors were encountered: