{"action":"opened","issue":{"url":"https://api.github.com/repos/APIs-guru/graphql-lodash/issues/8","repository_url":"https://api.github.com/repos/APIs-guru/graphql-lodash","labels_url":"https://api.github.com/repos/APIs-guru/graphql-lodash/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/APIs-guru/graphql-lodash/issues/8/comments","events_url":"https://api.github.com/repos/APIs-guru/graphql-lodash/issues/8/events","html_url":"https://github.com/APIs-guru/graphql-lodash/issues/8","id":265209256,"number":8,"title":"Mocking graphqlLodash with Jest","user":{"login":"aperkaz","id":16224847,"avatar_url":"https://avatars0.githubusercontent.com/u/16224847?v=4","gravatar_id":"","url":"https://api.github.com/users/aperkaz","html_url":"https://github.com/aperkaz","followers_url":"https://api.github.com/users/aperkaz/followers","following_url":"https://api.github.com/users/aperkaz/following{/other_user}","gists_url":"https://api.github.com/users/aperkaz/gists{/gist_id}","starred_url":"https://api.github.com/users/aperkaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aperkaz/subscriptions","organizations_url":"https://api.github.com/users/aperkaz/orgs","repos_url":"https://api.github.com/users/aperkaz/repos","events_url":"https://api.github.com/users/aperkaz/events{/privacy}","received_events_url":"https://api.github.com/users/aperkaz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-13T08:31:32Z","updated_at":"2017-10-13T08:31:32Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\nFirst of all, thanks for the nice project.\r\nI am trying to mock `graphql-lodash` with Jest, in order to test components decorated with it.\r\nIs there any de-facto / preferred way of mocking it? Below I add my code snippets.\r\n\r\nTests:\r\n```\r\nimport React from 'react';\r\nimport chai, { expect } from 'chai';\r\nimport { shallow } from 'enzyme';\r\nimport chaiEnzyme from 'chai-enzyme';\r\n\r\nimport Foo from './Foo';\r\n\r\ndescribe('Foo', () => {\r\n  const shallowed = shallow(<Foo />);\r\n\r\n  it('test Foo', () => {\r\n   {...}\r\n  });\r\n});\r\n\r\nchai.use(chaiEnzyme());\r\n```\r\n\r\nThanks :slightly_smiling_face: "}}
{"actor":{"display_login":"aperkaz"}}