{"action":"created","issue":{"url":"https://api.github.com/repos/JedWatson/react-select/issues/86","labels_url":"https://api.github.com/repos/JedWatson/react-select/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/JedWatson/react-select/issues/86/comments","events_url":"https://api.github.com/repos/JedWatson/react-select/issues/86/events","html_url":"https://github.com/JedWatson/react-select/issues/86","id":60328192,"number":86,"title":"Testing - RangeError: Maximum call stack size exceeded","user":{"login":"mattdell","id":2536442,"avatar_url":"https://avatars.githubusercontent.com/u/2536442?v=3","gravatar_id":"","url":"https://api.github.com/users/mattdell","html_url":"https://github.com/mattdell","followers_url":"https://api.github.com/users/mattdell/followers","following_url":"https://api.github.com/users/mattdell/following{/other_user}","gists_url":"https://api.github.com/users/mattdell/gists{/gist_id}","starred_url":"https://api.github.com/users/mattdell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattdell/subscriptions","organizations_url":"https://api.github.com/users/mattdell/orgs","repos_url":"https://api.github.com/users/mattdell/repos","events_url":"https://api.github.com/users/mattdell/events{/privacy}","received_events_url":"https://api.github.com/users/mattdell/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-03-09T11:09:29Z","updated_at":"2015-10-12T06:41:13Z","closed_at":"2015-03-25T13:53:44Z","body":"I'm using the react-select component in my application and whenever it is referenced in my Jest tests I get an error that says \"RangeError: Maximum call stack size exceeded\".\r\n\r\nHere is a basic test I've written using Jest based on the react-select example.\r\n```\r\n/** @jsx React.DOM */\r\n'use strict';\r\njest.autoMockOff();\r\n\r\nvar React = require(\"react/addons\");\r\nvar Select = require(\"react-select\");\r\nvar TestUtils = React.addons.TestUtils;\r\n\r\ndescribe(\"Select test\", function() {\r\n\r\n    var Select = require('react-select');\r\n\r\n    var options = [\r\n        { value: 'one', label: 'One' },\r\n        { value: 'two', label: 'Two' }\r\n    ];\r\n\r\n    function logChange(val) {\r\n        console.log(\"Selected: \" + val);\r\n    }\r\n\r\n    // Render an instance of the component\r\n    var instance = TestUtils.renderIntoDocument(\r\n        <Select\r\n            name=\"form-field-name\"\r\n            value=\"one\"\r\n            options={options}\r\n            onChange={logChange}/>\r\n        );\r\n});\r\n```\r\n\r\nBy simplifying the test to this level, I can assume the range error is happening within react-select. I also see Issue #73 there are no tests for react-select. \r\n\r\nDoes anyone else have a similar issue? I'm quite surprised the basic example implementation of the component won't pass a simple unit test."},"comment":{"url":"https://api.github.com/repos/JedWatson/react-select/issues/comments/147300922","html_url":"https://github.com/JedWatson/react-select/issues/86#issuecomment-147300922","issue_url":"https://api.github.com/repos/JedWatson/react-select/issues/86","id":147300922,"user":{"login":"ignivanishant","id":14292587,"avatar_url":"https://avatars.githubusercontent.com/u/14292587?v=3","gravatar_id":"","url":"https://api.github.com/users/ignivanishant","html_url":"https://github.com/ignivanishant","followers_url":"https://api.github.com/users/ignivanishant/followers","following_url":"https://api.github.com/users/ignivanishant/following{/other_user}","gists_url":"https://api.github.com/users/ignivanishant/gists{/gist_id}","starred_url":"https://api.github.com/users/ignivanishant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ignivanishant/subscriptions","organizations_url":"https://api.github.com/users/ignivanishant/orgs","repos_url":"https://api.github.com/users/ignivanishant/repos","events_url":"https://api.github.com/users/ignivanishant/events{/privacy}","received_events_url":"https://api.github.com/users/ignivanishant/received_events","type":"User","site_admin":false},"created_at":"2015-10-12T06:41:13Z","updated_at":"2015-10-12T06:41:13Z","body":"i am getting the Maximum call stack size exceeded in react-native. please provide the solution .\r\n\r\n\r\nThanks in advance\r\n Nishant Singh"}}