{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react/issues/6758","repository_url":"https://api.github.com/repos/facebook/react","labels_url":"https://api.github.com/repos/facebook/react/issues/6758/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react/issues/6758/comments","events_url":"https://api.github.com/repos/facebook/react/issues/6758/events","html_url":"https://github.com/facebook/react/issues/6758","id":154444353,"number":6758,"title":"How to use testutil for es6 component?","user":{"login":"naveenideas2it","id":14053259,"avatar_url":"https://avatars.githubusercontent.com/u/14053259?v=3","gravatar_id":"","url":"https://api.github.com/users/naveenideas2it","html_url":"https://github.com/naveenideas2it","followers_url":"https://api.github.com/users/naveenideas2it/followers","following_url":"https://api.github.com/users/naveenideas2it/following{/other_user}","gists_url":"https://api.github.com/users/naveenideas2it/gists{/gist_id}","starred_url":"https://api.github.com/users/naveenideas2it/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naveenideas2it/subscriptions","organizations_url":"https://api.github.com/users/naveenideas2it/orgs","repos_url":"https://api.github.com/users/naveenideas2it/repos","events_url":"https://api.github.com/users/naveenideas2it/events{/privacy}","received_events_url":"https://api.github.com/users/naveenideas2it/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/react/labels/Status:%20Unconfirmed","name":"Status: Unconfirmed","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-12T10:04:07Z","updated_at":"2016-05-16T23:48:11Z","closed_at":null,"body":"I used to run tests for es5 components using \r\n\r\n    `this.component = TestUtils.renderIntoDocument(React.createElement(Login, null));\r\n    this.renderedDOM` = () => `ReactDOM.findDOMNode(this.component);`\r\n\r\nwhen I changed the component to es6 I am getting\r\n\r\n     `Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.`\r\n\r\nI also tried \r\n\r\n      `this.component = TestUtils.renderIntoDocument(<Login/>);`"},"comment":{"url":"https://api.github.com/repos/facebook/react/issues/comments/219581515","html_url":"https://github.com/facebook/react/issues/6758#issuecomment-219581515","issue_url":"https://api.github.com/repos/facebook/react/issues/6758","id":219581515,"user":{"login":"jimfb","id":9595985,"avatar_url":"https://avatars.githubusercontent.com/u/9595985?v=3","gravatar_id":"","url":"https://api.github.com/users/jimfb","html_url":"https://github.com/jimfb","followers_url":"https://api.github.com/users/jimfb/followers","following_url":"https://api.github.com/users/jimfb/following{/other_user}","gists_url":"https://api.github.com/users/jimfb/gists{/gist_id}","starred_url":"https://api.github.com/users/jimfb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimfb/subscriptions","organizations_url":"https://api.github.com/users/jimfb/orgs","repos_url":"https://api.github.com/users/jimfb/repos","events_url":"https://api.github.com/users/jimfb/events{/privacy}","received_events_url":"https://api.github.com/users/jimfb/received_events","type":"User","site_admin":false},"created_at":"2016-05-16T23:48:11Z","updated_at":"2016-05-16T23:48:11Z","body":"Ping @naveenideas2it"}}