β¨ Feature proposal
Support objectContaining in toHaveBeenFetchedWith
π― Motivation
Improve test quality allowing to check only the relevant parts of the body
π Example
expect('/demo/').toHaveBeenFetchedWith({
method: 'POST',
body: expect.objectContaining({ sample: "false" }),
})
π¬ Comments