{"action":"closed","issue":{"url":"https://api.github.com/repos/facebook/jest/issues/1212","repository_url":"https://api.github.com/repos/facebook/jest","labels_url":"https://api.github.com/repos/facebook/jest/issues/1212/labels{/name}","comments_url":"https://api.github.com/repos/facebook/jest/issues/1212/comments","events_url":"https://api.github.com/repos/facebook/jest/issues/1212/events","html_url":"https://github.com/facebook/jest/issues/1212","id":162455094,"number":1212,"title":"Can I use automocking with mocha?","user":{"login":"vvo","id":123822,"avatar_url":"https://avatars.githubusercontent.com/u/123822?v=3","gravatar_id":"","url":"https://api.github.com/users/vvo","html_url":"https://github.com/vvo","followers_url":"https://api.github.com/users/vvo/followers","following_url":"https://api.github.com/users/vvo/following{/other_user}","gists_url":"https://api.github.com/users/vvo/gists{/gist_id}","starred_url":"https://api.github.com/users/vvo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vvo/subscriptions","organizations_url":"https://api.github.com/users/vvo/orgs","repos_url":"https://api.github.com/users/vvo/repos","events_url":"https://api.github.com/users/vvo/events{/privacy}","received_events_url":"https://api.github.com/users/vvo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-06-27T13:44:04Z","updated_at":"2016-06-28T00:42:18Z","closed_at":"2016-06-28T00:42:18Z","body":"One of the ideas I like from jest is it's auto mocking idea. Currently the only easy way in ES6 to mock dependencies is to use https://github.com/speedskater/babel-plugin-rewire but it only allows mocking after the dependencies have been loaded.\r\n\r\nDo you think we could extract and create a babel loader that would apply jest automocking and provide some functions around it?\r\n\r\nThis would allow us to promote the auto mocking feature in more testing situations and also maybe externalize some components.\r\n\r\nI have seen babel-jest, is that the solution I am looking for?"}}
{"actor":{"display_login":"cpojer"}}