Skip to content

Support Mock Matching using Post Body #1721

Answered by kettanaito
hecktarzuli asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, @hecktarzuli.

Please take a look at a similar question about matching against request query parameters: #1315 (comment). The approach to implementing the match against the request body will be quite the same (here's a more relevant comment on the topic #1315 (comment)).

MSW provides a versatile API for you to implement such a helper utility and use across your request handlers. This is not something we will ship out of the box.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kettanaito
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #1720 on August 31, 2023 10:15.