{"action":"closed","issue":{"url":"https://api.github.com/repos/facebook/jest/issues/1734","repository_url":"https://api.github.com/repos/facebook/jest","labels_url":"https://api.github.com/repos/facebook/jest/issues/1734/labels{/name}","comments_url":"https://api.github.com/repos/facebook/jest/issues/1734/comments","events_url":"https://api.github.com/repos/facebook/jest/issues/1734/events","html_url":"https://github.com/facebook/jest/issues/1734","id":177661386,"number":1734,"title":"mocking socket","user":{"login":"finalight","id":4475526,"avatar_url":"https://avatars.githubusercontent.com/u/4475526?v=3","gravatar_id":"","url":"https://api.github.com/users/finalight","html_url":"https://github.com/finalight","followers_url":"https://api.github.com/users/finalight/followers","following_url":"https://api.github.com/users/finalight/following{/other_user}","gists_url":"https://api.github.com/users/finalight/gists{/gist_id}","starred_url":"https://api.github.com/users/finalight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/finalight/subscriptions","organizations_url":"https://api.github.com/users/finalight/orgs","repos_url":"https://api.github.com/users/finalight/repos","events_url":"https://api.github.com/users/finalight/events{/privacy}","received_events_url":"https://api.github.com/users/finalight/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-18T16:28:50Z","updated_at":"2016-09-20T04:57:00Z","closed_at":"2016-09-20T04:57:00Z","body":"is there anyway to mock socket with jest?\r\n\r\nbasically my app is a 2 player game, whereby the first player creates a room, and then wait for player 2 to join (player 2 have to enter the game code provided by player 1 manually) before the navigator proceeds to the next scene which is the actual game.\r\n\r\nHowever, I cannot proceed to the second scene until the player 2 enter the pin. In this case, I need to mock to player 1 and let him assume that player 2 has already join the room. \r\n\r\nI not sure how to do that with jest"}}
{"actor":{"display_login":"cpojer"}}