Nock v13.0.0 Release Notes
Release Date: 2020-06-15 // almost 4 years ago-
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.