mswjs / interceptors

Low-level network interception library.
https://npm.im/@mswjs/interceptors
MIT License
565 stars 127 forks source link

fix(fetch): await response listener before resolving the response promise #658

Closed mikicho closed 1 month ago

mikicho commented 1 month ago
  1. Added tests
  2. wait for fetch unlocked request
  3. reduce the sleep for the ClientRequest tests :)

closes #656

@kettanaito Is it OK for the then callback to be async?

kettanaito commented 1 month ago

Released: v0.36.4 🎉

This has been released in v0.36.4!

Make sure to always update to the latest version (npm i @mswjs/interceptors@latest) to get the newest features and bug fixes.


Predictable release automation by @ossjs/release.