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()"
}
})