How can I get the arguments called by jest mock function?
I want to check an object as an argument.
Just use mockObject.calls . In my case, I used:
const call = mockUpload.mock.calls[0][0]
Here is the mock property documentation
mock