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
Hey folks, I have a few dozen handlers being used in MSW as an array and I see to overwrite it using the addon I would have to make them "named handlers" which from the setupServer() definition is not allowed. It would also require a high amount of effort to convert them into an object map.
So is there a way to overwrite the initial global handlers in the story similar to server.use(...)? So I would not have to change my handler's definition and be able to use them on Storybook and regular tests.
Thank you!
The text was updated successfully, but these errors were encountered:
Hey folks, I have a few dozen handlers being used in MSW as an array and I see to overwrite it using the addon I would have to make them "named handlers" which from the
setupServer()
definition is not allowed. It would also require a high amount of effort to convert them into an object map.So is there a way to overwrite the initial global handlers in the story similar to
server.use(...)
? So I would not have to change my handler's definition and be able to use them on Storybook and regular tests.Thank you!
The text was updated successfully, but these errors were encountered: