{"action":"created","issue":{"url":"https://api.github.com/repos/airbnb/enzyme/issues/609","repository_url":"https://api.github.com/repos/airbnb/enzyme","labels_url":"https://api.github.com/repos/airbnb/enzyme/issues/609/labels{/name}","comments_url":"https://api.github.com/repos/airbnb/enzyme/issues/609/comments","events_url":"https://api.github.com/repos/airbnb/enzyme/issues/609/events","html_url":"https://github.com/airbnb/enzyme/issues/609","id":179325875,"number":609,"title":"TypeError: Attempted to wrap componentDidMount which is already wrapped","user":{"login":"laumair","id":20437468,"avatar_url":"https://avatars.githubusercontent.com/u/20437468?v=3","gravatar_id":"","url":"https://api.github.com/users/laumair","html_url":"https://github.com/laumair","followers_url":"https://api.github.com/users/laumair/followers","following_url":"https://api.github.com/users/laumair/following{/other_user}","gists_url":"https://api.github.com/users/laumair/gists{/gist_id}","starred_url":"https://api.github.com/users/laumair/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laumair/subscriptions","organizations_url":"https://api.github.com/users/laumair/orgs","repos_url":"https://api.github.com/users/laumair/repos","events_url":"https://api.github.com/users/laumair/events{/privacy}","received_events_url":"https://api.github.com/users/laumair/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-09-26T20:14:14Z","updated_at":"2016-09-26T21:16:51Z","closed_at":null,"body":"```\r\n const initialProps = setup();\r\n      const groups = {\r\n        fetchGroups: sinon.stub(),\r\n        groupsStore: {\r\n          profilesList: []\r\n        }\r\n      };\r\n      const props = _.merge({}, initialProps, { groups });\r\n      const spy = sinon.spy(Groups.prototype, 'componentDidMount');\r\n      shallow(<Groups {...props} />);\r\n      expect(spy.calledOnce).to.equal(true);\r\n```\r\n\r\nIt says : `Attempted to wrap componentDidMount which is already wrapped`\r\n\r\nI am not sure what I am missing. "},"comment":{"url":"https://api.github.com/repos/airbnb/enzyme/issues/comments/249700126","html_url":"https://github.com/airbnb/enzyme/issues/609#issuecomment-249700126","issue_url":"https://api.github.com/repos/airbnb/enzyme/issues/609","id":249700126,"user":{"login":"Aweary","id":6886061,"avatar_url":"https://avatars.githubusercontent.com/u/6886061?v=3","gravatar_id":"","url":"https://api.github.com/users/Aweary","html_url":"https://github.com/Aweary","followers_url":"https://api.github.com/users/Aweary/followers","following_url":"https://api.github.com/users/Aweary/following{/other_user}","gists_url":"https://api.github.com/users/Aweary/gists{/gist_id}","starred_url":"https://api.github.com/users/Aweary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aweary/subscriptions","organizations_url":"https://api.github.com/users/Aweary/orgs","repos_url":"https://api.github.com/users/Aweary/repos","events_url":"https://api.github.com/users/Aweary/events{/privacy}","received_events_url":"https://api.github.com/users/Aweary/received_events","type":"User","site_admin":false},"created_at":"2016-09-26T21:16:51Z","updated_at":"2016-09-26T21:16:51Z","body":"@laumair I'd recommend using `{ lifecycleExperimental: true }` if you want to test lifecycle methods with shallow wrappers! We hid it behind a flag for now to be sure it worked as expected, so we'd really appreciate it if you used it and let us know if you have issues 👍 "}}
{"actor":{"display_login":"Aweary"}}