var data = { foo: 'bar'};
var blob = new Blob([JSON.stringify(data)], {type : 'application/json'});
var init = { "status" : 200 , "statusText" : "SuperSmashingGreat!" };
var resp = new Response(blob,init);
とすることで mock できる。
https://stackoverflow.com/questions/56654119/how-do-you-set-the-url-when-creating-a-new-response