I am currently using Nock and would like to replace it with Mock Service Worker.
With Nock I am able to match the stringified request body with the provided buffer:
const request = nock(hostname)
.post('/api/instance', Buffer.from(arrayBuffer))
.reply(201, json);
I have not figured out how to get the same result with mws because the request body and the buffer are not equal. Can someone help me?
Thanks.