{"action":"created","issue":{"url":"https://api.github.com/repos/airbnb/enzyme/issues/1050","repository_url":"https://api.github.com/repos/airbnb/enzyme","labels_url":"https://api.github.com/repos/airbnb/enzyme/issues/1050/labels{/name}","comments_url":"https://api.github.com/repos/airbnb/enzyme/issues/1050/comments","events_url":"https://api.github.com/repos/airbnb/enzyme/issues/1050/events","html_url":"https://github.com/airbnb/enzyme/issues/1050","id":246312522,"number":1050,"title":"Mount not working (RangeError: Invalid string length)","user":{"login":"alexmarles","id":757181,"avatar_url":"https://avatars1.githubusercontent.com/u/757181?v=4","gravatar_id":"","url":"https://api.github.com/users/alexmarles","html_url":"https://github.com/alexmarles","followers_url":"https://api.github.com/users/alexmarles/followers","following_url":"https://api.github.com/users/alexmarles/following{/other_user}","gists_url":"https://api.github.com/users/alexmarles/gists{/gist_id}","starred_url":"https://api.github.com/users/alexmarles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexmarles/subscriptions","organizations_url":"https://api.github.com/users/alexmarles/orgs","repos_url":"https://api.github.com/users/alexmarles/repos","events_url":"https://api.github.com/users/alexmarles/events{/privacy}","received_events_url":"https://api.github.com/users/alexmarles/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-07-28T10:44:47Z","updated_at":"2018-03-13T14:16:47Z","closed_at":"2017-07-28T12:26:14Z","author_association":"NONE","body":"Hi everyone,\r\n\r\nmaybe I am missing something essential, but I am trying to use ```mount``` for some testing and it is just not working. These are my Jest and Enzyme versions:\r\n```\r\n\"enzyme\": \"^2.9.1\",\r\n\"jest\": \"^20.0.4\",\r\n```\r\n\r\nI have tried in different types of components and even in the simplest one I came up to, it still not works. This is the component code:\r\n```javascript\r\nimport React, { Component } from 'react'\r\n\r\nclass Simple extends Component {\r\n  render () {\r\n    return (\r\n      <div>\r\n        <p>This is simple</p>\r\n      </div>\r\n    )\r\n  }\r\n}\r\n\r\nexport default Simple\r\n```\r\nAnd this is the test I wrote for it:\r\n```javascript\r\nimport React from 'react'\r\nimport { mount } from 'enzyme'\r\n\r\nimport Simple from '../../src/js/components/Simple'\r\n\r\ntest('Simple component renders', () => {\r\n  let wrapper = mount(<Simple />)\r\n  expect(wrapper).toMatchSnapshot()\r\n})\r\n```\r\nAnd the output I get is this:\r\n```\r\nFAIL  __test__/components/Simple.test.js (26.302s)\r\n  ● Simple component renders\r\n    RangeError: Invalid string length\r\n      \r\n      at Object.<anonymous> (__test__/components/Simple.test.js:8:19)\r\n      at Promise.resolve.then.el (node_modules/p-map/index.js:42:16)\r\n      at process._tickCallback (internal/process/next_tick.js:109:7)\r\n```\r\nI googled this error and the only thing I found is that it might be some out of memory problem, and that is why I tried it with a really simple component, but still it doesn't work. I have tested this in Ubuntu and Mac OS X, both with the same results.\r\n\r\nThanks in advance for those who can help me with it!"},"comment":{"url":"https://api.github.com/repos/airbnb/enzyme/issues/comments/372680316","html_url":"https://github.com/airbnb/enzyme/issues/1050#issuecomment-372680316","issue_url":"https://api.github.com/repos/airbnb/enzyme/issues/1050","id":372680316,"user":{"login":"schtauffen","id":8205935,"avatar_url":"https://avatars2.githubusercontent.com/u/8205935?v=4","gravatar_id":"","url":"https://api.github.com/users/schtauffen","html_url":"https://github.com/schtauffen","followers_url":"https://api.github.com/users/schtauffen/followers","following_url":"https://api.github.com/users/schtauffen/following{/other_user}","gists_url":"https://api.github.com/users/schtauffen/gists{/gist_id}","starred_url":"https://api.github.com/users/schtauffen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schtauffen/subscriptions","organizations_url":"https://api.github.com/users/schtauffen/orgs","repos_url":"https://api.github.com/users/schtauffen/repos","events_url":"https://api.github.com/users/schtauffen/events{/privacy}","received_events_url":"https://api.github.com/users/schtauffen/received_events","type":"User","site_admin":false},"created_at":"2018-03-13T14:16:47Z","updated_at":"2018-03-13T14:16:47Z","author_association":"NONE","body":"I am also seeing this:\r\n>>>\r\nRangeError: Invalid string length\r\n\r\n      at printListItems (node_modules/pretty-format/build/collections.js:174:256)\r\n      at printComplexValue (node_modules/pretty-format/build/index.js:214:37)\r\n      at printer (node_modules/pretty-format/build/index.js:334:10)\r\n      at printObjectProperties (node_modules/pretty-format/build/collections.js:179:21)\r\n      at printComplexValue (node_modules/pretty-format/build/index.js:253:42)\r\n      at printer (node_modules/pretty-format/build/index.js:334:10)\r\n      at printListItems (node_modules/pretty-format/build/collections.js:174:258)\r\n      at printComplexValue (node_modules/pretty-format/build/index.js:214:37)\r\n      at printer (node_modules/pretty-format/build/index.js:334:10)\r\n      at printObjectProperties (node_modules/pretty-format/build/collections.js:179:21)\r\n      at printComplexValue (node_modules/pretty-format/build/index.js:253:42)\r\n      at printer (node_modules/pretty-format/build/index.js:334:10)\r\n      at printListItems (node_modules/pretty-format/build/collections.js:174:258)\r\n      at printComplexValue (node_modules/pretty-format/build/index.js:214:37)\r\n      [sic]\r\n>>> "}}
{"actor":{"display_login":"schtauffen"}}