{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/jest/issues/826","repository_url":"https://api.github.com/repos/facebook/jest","labels_url":"https://api.github.com/repos/facebook/jest/issues/826/labels{/name}","comments_url":"https://api.github.com/repos/facebook/jest/issues/826/comments","events_url":"https://api.github.com/repos/facebook/jest/issues/826/events","html_url":"https://github.com/facebook/jest/pull/826","id":142763550,"number":826,"title":"Hoist `jest.mock` with 2 arguments.","user":{"login":"pvolok","id":2015955,"avatar_url":"https://avatars.githubusercontent.com/u/2015955?v=3","gravatar_id":"","url":"https://api.github.com/users/pvolok","html_url":"https://github.com/pvolok","followers_url":"https://api.github.com/users/pvolok/followers","following_url":"https://api.github.com/users/pvolok/following{/other_user}","gists_url":"https://api.github.com/users/pvolok/gists{/gist_id}","starred_url":"https://api.github.com/users/pvolok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pvolok/subscriptions","organizations_url":"https://api.github.com/users/pvolok/orgs","repos_url":"https://api.github.com/users/pvolok/repos","events_url":"https://api.github.com/users/pvolok/events{/privacy}","received_events_url":"https://api.github.com/users/pvolok/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/jest/labels/CLA%20Signed","name":"CLA Signed","color":"009900"},{"url":"https://api.github.com/repos/facebook/jest/labels/GH%20Review:%20accepted","name":"GH Review: accepted","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-03-22T20:03:51Z","updated_at":"2016-03-25T03:47:22Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/facebook/jest/pulls/826","html_url":"https://github.com/facebook/jest/pull/826","diff_url":"https://github.com/facebook/jest/pull/826.diff","patch_url":"https://github.com/facebook/jest/pull/826.patch"},"body":"Comes from #796\r\n\r\nHow about throwing if second argument references outside variables? So we will be able to allow referencing later.\r\n\r\nedit by @cpojer:\r\n@bypass-lint internal eslint invariant-rule is silly"},"comment":{"url":"https://api.github.com/repos/facebook/jest/issues/comments/201124527","html_url":"https://github.com/facebook/jest/pull/826#issuecomment-201124527","issue_url":"https://api.github.com/repos/facebook/jest/issues/826","id":201124527,"user":{"login":"facebook-github-bot","id":6422482,"avatar_url":"https://avatars.githubusercontent.com/u/6422482?v=3","gravatar_id":"","url":"https://api.github.com/users/facebook-github-bot","html_url":"https://github.com/facebook-github-bot","followers_url":"https://api.github.com/users/facebook-github-bot/followers","following_url":"https://api.github.com/users/facebook-github-bot/following{/other_user}","gists_url":"https://api.github.com/users/facebook-github-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook-github-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook-github-bot/subscriptions","organizations_url":"https://api.github.com/users/facebook-github-bot/orgs","repos_url":"https://api.github.com/users/facebook-github-bot/repos","events_url":"https://api.github.com/users/facebook-github-bot/events{/privacy}","received_events_url":"https://api.github.com/users/facebook-github-bot/received_events","type":"User","site_admin":false},"created_at":"2016-03-25T03:47:22Z","updated_at":"2016-03-25T03:47:22Z","body":"Thanks for importing. If you are an FB employee go to [Phabricator](https://our.intern.facebook.com/intern/opensource/github/pull_request/743304005771562/int_phab) to review."}}