fetch-mock icon indicating copy to clipboard operation
fetch-mock copied to clipboard

FIX: fetch-mock Response.body is not always a stream

Open fluggo opened this issue 3 years ago • 2 comments

The WhatWG fetch spec requires that Body.body (and therefore Response.body) is always a readable stream, but it doesn't always happen that way in Node. This seems to be because ResponseBuilder tries to fetch the stream module from fetchMock, but it looks in the wrong place.

Fixes #609.

fluggo avatar May 15 '21 21:05 fluggo

The CI check that shows failure if code is similar in test cases is not fun.

fluggo avatar May 15 '21 21:05 fluggo

I've fixed all the issues I can find. I can't access the circleci tests to see what it's complaining about.

fluggo avatar May 15 '21 21:05 fluggo