{"action":"created","issue":{"url":"https://api.github.com/repos/node-nock/nock/issues/1058","repository_url":"https://api.github.com/repos/node-nock/nock","labels_url":"https://api.github.com/repos/node-nock/nock/issues/1058/labels{/name}","comments_url":"https://api.github.com/repos/node-nock/nock/issues/1058/comments","events_url":"https://api.github.com/repos/node-nock/nock/issues/1058/events","html_url":"https://github.com/node-nock/nock/issues/1058","id":294083379,"number":1058,"title":"Allow requiring nock without side effects","user":{"login":"kamalmarhubi","id":50936,"avatar_url":"https://avatars0.githubusercontent.com/u/50936?v=4","gravatar_id":"","url":"https://api.github.com/users/kamalmarhubi","html_url":"https://github.com/kamalmarhubi","followers_url":"https://api.github.com/users/kamalmarhubi/followers","following_url":"https://api.github.com/users/kamalmarhubi/following{/other_user}","gists_url":"https://api.github.com/users/kamalmarhubi/gists{/gist_id}","starred_url":"https://api.github.com/users/kamalmarhubi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamalmarhubi/subscriptions","organizations_url":"https://api.github.com/users/kamalmarhubi/orgs","repos_url":"https://api.github.com/users/kamalmarhubi/repos","events_url":"https://api.github.com/users/kamalmarhubi/events{/privacy}","received_events_url":"https://api.github.com/users/kamalmarhubi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-03T04:34:55Z","updated_at":"2018-03-23T20:58:44Z","closed_at":null,"author_association":"NONE","body":"As far as I can tell, there's no way to `require('nock')` without it resulting in `intercept.activate()` being called. There are test running setups that could result in `nock` breaking unrelated tests.\r\n\r\nI would like to be able to write \r\n\r\n```\r\nnock = require('nock/inactive');\r\n```\r\n\r\nand have it bring nock into scope without actually doing anything. Then I can `nock.activate()` and `nock.restore()` in appropriate places.\r\n\r\n\r\n-----\r\n\r\nIf there is in fact a way to do this, please let me know! Otherwise I'd be happy to contribute this patch."},"comment":{"url":"https://api.github.com/repos/node-nock/nock/issues/comments/375796592","html_url":"https://github.com/node-nock/nock/issues/1058#issuecomment-375796592","issue_url":"https://api.github.com/repos/node-nock/nock/issues/1058","id":375796592,"user":{"login":"codingthat","id":26723818,"avatar_url":"https://avatars3.githubusercontent.com/u/26723818?v=4","gravatar_id":"","url":"https://api.github.com/users/codingthat","html_url":"https://github.com/codingthat","followers_url":"https://api.github.com/users/codingthat/followers","following_url":"https://api.github.com/users/codingthat/following{/other_user}","gists_url":"https://api.github.com/users/codingthat/gists{/gist_id}","starred_url":"https://api.github.com/users/codingthat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codingthat/subscriptions","organizations_url":"https://api.github.com/users/codingthat/orgs","repos_url":"https://api.github.com/users/codingthat/repos","events_url":"https://api.github.com/users/codingthat/events{/privacy}","received_events_url":"https://api.github.com/users/codingthat/received_events","type":"User","site_admin":false},"created_at":"2018-03-23T20:58:44Z","updated_at":"2018-03-23T20:58:44Z","author_association":"NONE","body":"@kamalmarhubi may I suggest it be called `nock/off` =]"}}
{"actor":{"display_login":"codingthat"}}