yarn msw 0.38.0
v0.38.0

latest releases: 2.3.0, 2.2.14, 2.3.0-ws.rc-6...
2 years ago

0.38.0 (2022-02-19)

Features

  • update to @mswjs/interceptors 0.13.3 (#1095) (e288d18), closes #1102
  • allow default behavior of onUnhandledRequest in a custom callback (#1096):
worker.start({
  onUnhandledRequest(request, print) {
    // Ignore unhandled warnings/errors from asset requests.
    if (request.url.href.includes('/assets/') {
      return
    }

    // Otherwise, execute the default warning/error/ strategy.
   print.warning() // or "print.error()" 
  }
})

Don't miss a new msw release

NewReleases is sending notifications on new releases.