{"action":"created","issue":{"url":"https://api.github.com/repos/rackt/redux/issues/1000","labels_url":"https://api.github.com/repos/rackt/redux/issues/1000/labels{/name}","comments_url":"https://api.github.com/repos/rackt/redux/issues/1000/comments","events_url":"https://api.github.com/repos/rackt/redux/issues/1000/events","html_url":"https://github.com/rackt/redux/issues/1000","id":114914287,"number":1000,"title":"Mocking nested smart components with mocha","user":{"login":"gothy","id":131037,"avatar_url":"https://avatars.githubusercontent.com/u/131037?v=3","gravatar_id":"","url":"https://api.github.com/users/gothy","html_url":"https://github.com/gothy","followers_url":"https://api.github.com/users/gothy/followers","following_url":"https://api.github.com/users/gothy/following{/other_user}","gists_url":"https://api.github.com/users/gothy/gists{/gist_id}","starred_url":"https://api.github.com/users/gothy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gothy/subscriptions","organizations_url":"https://api.github.com/users/gothy/orgs","repos_url":"https://api.github.com/users/gothy/repos","events_url":"https://api.github.com/users/gothy/events{/privacy}","received_events_url":"https://api.github.com/users/gothy/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-03T21:27:00Z","updated_at":"2015-11-03T21:34:11Z","closed_at":"2015-11-03T21:34:11Z","body":"Hi,\r\n\r\nI'm trying to test a \"smart\" connected component that has another connect'ed child inside.\r\nPreparing a store for the test and providing it directly\r\n```js\r\nTestUtils.renderIntoDocument(\r\n    <SmartParent store={store} />\r\n);\r\n```\r\n\r\nand SmartParent has `<SmartChild />` in it that throws an exception like `Either wrap the root component in a <Provider>, or explicitly pass \"store\"...`\r\n\r\nI know there's `rewire`, but I couldn't manage babel\\webpack\\karma\\rewire setup easily, so I went with making the `SmartChild` dumb for now. But I really would like to figure testing thing out.\r\nAny hints on this? Maybe some working examples?\r\n\r\nThanks!\r\n"},"comment":{"url":"https://api.github.com/repos/rackt/redux/issues/comments/153496472","html_url":"https://github.com/rackt/redux/issues/1000#issuecomment-153496472","issue_url":"https://api.github.com/repos/rackt/redux/issues/1000","id":153496472,"user":{"login":"gaearon","id":810438,"avatar_url":"https://avatars.githubusercontent.com/u/810438?v=3","gravatar_id":"","url":"https://api.github.com/users/gaearon","html_url":"https://github.com/gaearon","followers_url":"https://api.github.com/users/gaearon/followers","following_url":"https://api.github.com/users/gaearon/following{/other_user}","gists_url":"https://api.github.com/users/gaearon/gists{/gist_id}","starred_url":"https://api.github.com/users/gaearon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaearon/subscriptions","organizations_url":"https://api.github.com/users/gaearon/orgs","repos_url":"https://api.github.com/users/gaearon/repos","events_url":"https://api.github.com/users/gaearon/events{/privacy}","received_events_url":"https://api.github.com/users/gaearon/received_events","type":"User","site_admin":false},"created_at":"2015-11-03T21:34:11Z","updated_at":"2015-11-03T21:34:11Z","body":"```js\r\nTestUtils.renderIntoDocument(\r\n  <Provider store={store}>\r\n    <SmartParent />\r\n  </Provider>\r\n);\r\n```"}}