{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/jest/issues/965","repository_url":"https://api.github.com/repos/facebook/jest","labels_url":"https://api.github.com/repos/facebook/jest/issues/965/labels{/name}","comments_url":"https://api.github.com/repos/facebook/jest/issues/965/comments","events_url":"https://api.github.com/repos/facebook/jest/issues/965/events","html_url":"https://github.com/facebook/jest/issues/965","id":152457335,"number":965,"title":"jest.disableAutoMock() is silently ignored","user":{"login":"dmnd","id":4427,"avatar_url":"https://avatars.githubusercontent.com/u/4427?v=3","gravatar_id":"","url":"https://api.github.com/users/dmnd","html_url":"https://github.com/dmnd","followers_url":"https://api.github.com/users/dmnd/followers","following_url":"https://api.github.com/users/dmnd/following{/other_user}","gists_url":"https://api.github.com/users/dmnd/gists{/gist_id}","starred_url":"https://api.github.com/users/dmnd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmnd/subscriptions","organizations_url":"https://api.github.com/users/dmnd/orgs","repos_url":"https://api.github.com/users/dmnd/repos","events_url":"https://api.github.com/users/dmnd/events{/privacy}","received_events_url":"https://api.github.com/users/dmnd/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-05-01T21:53:13Z","updated_at":"2016-07-27T09:41:39Z","closed_at":"2016-07-27T09:41:39Z","body":"I'm using jest-cli 12.0.2 and babel-jest 12.0.2.\r\n\r\nIn a test, I wrote `jest.disableAutoMock()` (i.e. uppercase `M`) when the actual API is `jest.disableAutomock()` (lowercase `m`). Surprisingly, I didn't get an error. Instead, it seems like test ran as if that line wasn't present.\r\n\r\nIdeally, jest would throw an error if I try to call something incorrectly. I briefly tried `jest.definitelyNotThere()` and got an error. I haven't dug into why the version differing only by case is silently ignored."},"comment":{"url":"https://api.github.com/repos/facebook/jest/issues/comments/235537769","html_url":"https://github.com/facebook/jest/issues/965#issuecomment-235537769","issue_url":"https://api.github.com/repos/facebook/jest/issues/965","id":235537769,"user":{"login":"cpojer","id":13352,"avatar_url":"https://avatars.githubusercontent.com/u/13352?v=3","gravatar_id":"","url":"https://api.github.com/users/cpojer","html_url":"https://github.com/cpojer","followers_url":"https://api.github.com/users/cpojer/followers","following_url":"https://api.github.com/users/cpojer/following{/other_user}","gists_url":"https://api.github.com/users/cpojer/gists{/gist_id}","starred_url":"https://api.github.com/users/cpojer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpojer/subscriptions","organizations_url":"https://api.github.com/users/cpojer/orgs","repos_url":"https://api.github.com/users/cpojer/repos","events_url":"https://api.github.com/users/cpojer/events{/privacy}","received_events_url":"https://api.github.com/users/cpojer/received_events","type":"User","site_admin":false},"created_at":"2016-07-27T09:41:39Z","updated_at":"2016-07-27T09:41:39Z","body":"Closing due to inactivity."}}
{"actor":{"display_login":"cpojer"}}