{"action":"created","issue":{"url":"https://api.github.com/repos/airbnb/enzyme/issues/1250","repository_url":"https://api.github.com/repos/airbnb/enzyme","labels_url":"https://api.github.com/repos/airbnb/enzyme/issues/1250/labels{/name}","comments_url":"https://api.github.com/repos/airbnb/enzyme/issues/1250/comments","events_url":"https://api.github.com/repos/airbnb/enzyme/issues/1250/events","html_url":"https://github.com/airbnb/enzyme/issues/1250","id":264648307,"number":1250,"title":"wrapper.instance() returns null under React 16","user":{"login":"jwalton","id":1771003,"avatar_url":"https://avatars1.githubusercontent.com/u/1771003?v=4","gravatar_id":"","url":"https://api.github.com/users/jwalton","html_url":"https://github.com/jwalton","followers_url":"https://api.github.com/users/jwalton/followers","following_url":"https://api.github.com/users/jwalton/following{/other_user}","gists_url":"https://api.github.com/users/jwalton/gists{/gist_id}","starred_url":"https://api.github.com/users/jwalton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwalton/subscriptions","organizations_url":"https://api.github.com/users/jwalton/orgs","repos_url":"https://api.github.com/users/jwalton/repos","events_url":"https://api.github.com/users/jwalton/events{/privacy}","received_events_url":"https://api.github.com/users/jwalton/received_events","type":"User","site_admin":false},"labels":[{"id":711847544,"url":"https://api.github.com/repos/airbnb/enzyme/labels/react%20adapter:%2016","name":"react adapter: 16","color":"c5def5","default":false},{"id":704653953,"url":"https://api.github.com/repos/airbnb/enzyme/labels/v3%20expected%20difference","name":"v3 expected difference","color":"c2e0c6","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-10-11T16:12:01Z","updated_at":"2017-10-11T19:19:45Z","closed_at":"2017-10-11T18:02:49Z","author_association":"CONTRIBUTOR","body":"To reproduce:\r\n\r\n    npm install enzyme@3.1.0 react@16.0.0 react-dom@16.0.0 react-test-renderer@16.0.0 enzyme-adapter-react-16@1.0.1\r\n\r\nThen create test.js:\r\n\r\n```js\r\nconst React = require('react');\r\nconst {shallow, configure} = require('enzyme');\r\nconst Adapter = require('enzyme-adapter-react-16');\r\n\r\nconfigure({adapter: new Adapter()});\r\n\r\nconst wrapper = shallow(React.createElement('div', null, 'Hello World'));\r\nconsole.log(wrapper.instance());\r\n```\r\n\r\nAnd finally:\r\n\r\n    node test.js\r\n\r\nWe expect this to print something exciting, instead it just prints 'null'.\r\n"},"comment":{"url":"https://api.github.com/repos/airbnb/enzyme/issues/comments/335919053","html_url":"https://github.com/airbnb/enzyme/issues/1250#issuecomment-335919053","issue_url":"https://api.github.com/repos/airbnb/enzyme/issues/1250","id":335919053,"user":{"login":"jwalton","id":1771003,"avatar_url":"https://avatars1.githubusercontent.com/u/1771003?v=4","gravatar_id":"","url":"https://api.github.com/users/jwalton","html_url":"https://github.com/jwalton","followers_url":"https://api.github.com/users/jwalton/followers","following_url":"https://api.github.com/users/jwalton/following{/other_user}","gists_url":"https://api.github.com/users/jwalton/gists{/gist_id}","starred_url":"https://api.github.com/users/jwalton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwalton/subscriptions","organizations_url":"https://api.github.com/users/jwalton/orgs","repos_url":"https://api.github.com/users/jwalton/repos","events_url":"https://api.github.com/users/jwalton/events{/privacy}","received_events_url":"https://api.github.com/users/jwalton/received_events","type":"User","site_admin":false},"created_at":"2017-10-11T19:19:45Z","updated_at":"2017-10-11T19:19:45Z","author_association":"CONTRIBUTOR","body":"Ah.  I see where I went wrong.  One of my `mount()` tests was complaining that I should use `instance()` instead of `getNode()`, but this is only true for `mount()` and not for `shallow()`."}}
{"actor":{"display_login":"jwalton"}}