diff --git a/index.js b/index.js index 654b8db5b..1c8d00d5a 100644 --- a/index.js +++ b/index.js @@ -29,14 +29,7 @@ Object.assign(module.exports, { removeInterceptor, disableNetConnect, enableNetConnect, - // TODO-12.x Historically `nock.cleanAll()` has returned the nock global. - // The other global methods do not do this, so it's not clear this was - // deliberate or is even helpful. This shim is included for backward - // compatibility and should be replaced with an alias to `removeAll()`. - cleanAll() { - removeAll() - return module.exports - }, + cleanAll: removeAll, abortPendingRequests, load, loadDefs,