assaf / node-replay

When API testing slows you down: record and replay HTTP responses like a boss
http://documentup.com/assaf/node-replay
MIT License
522 stars 107 forks source link

Breaks `got` v11 on Node.JS v14 #182

Open api-haus opened 3 years ago

api-haus commented 3 years ago

This package breaks usage of IncomingMessage as AsyncIterator. Including libraries like: got.

for await (const chunk of request)

Leads to:

TypeError: Cannot read property 'readable' of undefined

Leaving there just to save time for people searching for this issue.

fracmak commented 3 years ago

I was able to solve this by switching to nock's version of vcr/replay Nock Back

https://github.com/nock/nock#nock-back

pstadler commented 2 years ago

We switched to Pollyjs.