{"action":"created","issue":{"url":"https://api.github.com/repos/airbnb/enzyme/issues/1195","repository_url":"https://api.github.com/repos/airbnb/enzyme","labels_url":"https://api.github.com/repos/airbnb/enzyme/issues/1195/labels{/name}","comments_url":"https://api.github.com/repos/airbnb/enzyme/issues/1195/comments","events_url":"https://api.github.com/repos/airbnb/enzyme/issues/1195/events","html_url":"https://github.com/airbnb/enzyme/issues/1195","id":261485122,"number":1195,"title":"TypeError: Cannot read property 'rendered' of null (v3)","user":{"login":"wojtekmaj","id":5426427,"avatar_url":"https://avatars2.githubusercontent.com/u/5426427?v=4","gravatar_id":"","url":"https://api.github.com/users/wojtekmaj","html_url":"https://github.com/wojtekmaj","followers_url":"https://api.github.com/users/wojtekmaj/followers","following_url":"https://api.github.com/users/wojtekmaj/following{/other_user}","gists_url":"https://api.github.com/users/wojtekmaj/gists{/gist_id}","starred_url":"https://api.github.com/users/wojtekmaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wojtekmaj/subscriptions","organizations_url":"https://api.github.com/users/wojtekmaj/orgs","repos_url":"https://api.github.com/users/wojtekmaj/repos","events_url":"https://api.github.com/users/wojtekmaj/events{/privacy}","received_events_url":"https://api.github.com/users/wojtekmaj/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-09-28T22:54:09Z","updated_at":"2017-10-30T13:07:41Z","closed_at":"2017-09-28T23:12:07Z","author_association":"NONE","body":"I have a fairly simple component that renders another component, its navigation. I have test in place to test whether it has been rendered inside. I'm using Jest and Enzyme v3.\r\n\r\n```js\r\n  it('renders navigation', () => {\r\n    const component = mount(\r\n      <Calendar />\r\n    );\r\n\r\n    const navigation = component.find('.react-calendar__navigation');\r\n\r\n    expect(navigation.length).toBe(1);\r\n  });\r\n```\r\n\r\nInterestingly, this test passed without any issues on my computer. However, on Travis CI, I got the following error:\r\n\r\n```\r\nTypeError: Cannot read property 'rendered' of null\r\n      \r\n  at Object.getNode (node_modules/enzyme-adapter-react-16/build/ReactSixteenAdapter.js:233:69)\r\n  at new ReactWrapper (node_modules/enzyme/build/ReactWrapper.js:100:33)\r\n  at mount (node_modules/enzyme/build/mount.js:19:10)\r\n  at Object.<anonymous> (src/__tests__/Calendar.jsx:13:39)\r\n      at Promise (<anonymous>)\r\n      at <anonymous>\r\n  at process._tickCallback (internal/process/next_tick.js:188:7)\r\n```\r\n\r\nThe code worked fine on Enzyme 2.9.1. Do you have any hints on what I could be doing wrong?"},"comment":{"url":"https://api.github.com/repos/airbnb/enzyme/issues/comments/340438154","html_url":"https://github.com/airbnb/enzyme/issues/1195#issuecomment-340438154","issue_url":"https://api.github.com/repos/airbnb/enzyme/issues/1195","id":340438154,"user":{"login":"eenewbsauce","id":1984101,"avatar_url":"https://avatars3.githubusercontent.com/u/1984101?v=4","gravatar_id":"","url":"https://api.github.com/users/eenewbsauce","html_url":"https://github.com/eenewbsauce","followers_url":"https://api.github.com/users/eenewbsauce/followers","following_url":"https://api.github.com/users/eenewbsauce/following{/other_user}","gists_url":"https://api.github.com/users/eenewbsauce/gists{/gist_id}","starred_url":"https://api.github.com/users/eenewbsauce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eenewbsauce/subscriptions","organizations_url":"https://api.github.com/users/eenewbsauce/orgs","repos_url":"https://api.github.com/users/eenewbsauce/repos","events_url":"https://api.github.com/users/eenewbsauce/events{/privacy}","received_events_url":"https://api.github.com/users/eenewbsauce/received_events","type":"User","site_admin":false},"created_at":"2017-10-30T13:07:41Z","updated_at":"2017-10-30T13:07:41Z","author_association":"NONE","body":"Lol... Had the same thing happen. This issue made me check my `package.json` and feel shame. Quickly after the shame faded, my tests were working again though. Thanks!"}}
{"actor":{"display_login":"eenewbsauce"}}