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
MSW promotes the philosophy that you can describe the network regardless of the implementation details of that network. Providing a precise interceptor is not something we encourage directly because you want consistent behavior no matter how the request is made.
If you absolutely must narrow down the interception, you can do that by creating your own setupServer function using the public API:
You will be limited in the feature set, however, since SetupServerCommonApi doesn't have Node-specific features like Server Boundary. We extend the same base class for Node.js and for React Native so that base class must remain neutral.
Scope
Adds a new behavior
Compatibility
Feature description
maybe there's a clear reason but why are there no options when creating the server? seems quite limiting.
for example, if i only wanna mock xml request:
The text was updated successfully, but these errors were encountered: