See the Migration Guide
Breaking changes
-
Scope.log
has been removed. Use thedebug
library when debugging failed matches. -
socketDelay
has been removed. UsedelayConnection
instead. -
delay
,delayConnection
, anddelayBody
are now setters instead of additive. -
When recording, skipping body matching using
*
is no longer supported bynock.define
.
Set the definition body toundefined
instead. -
ClientRequest.abort()
has been updated to align with Node's native behavior.
This could be considered a feature, however, it created some subtle differences that are not backwards compatible. Refer to the migration guide for details. -
Playback of a mocked responses will now never happen until the 'socket' event is emitted.