title: How to access child of a component in jest in a react/redux app
body: <p>I like to test a component inside Connect in a Redux app:</p>
  
  <pre><code>this.component = TestUtils.renderIntoDocument(&lt;Provider store={store}&gt;&lt;Header path={this.path} /&gt;&lt;/Provider&gt;);
  </code></pre>
  
  <p>I have no idea about how to access Header inside Provider...(since I can not stop through in a debugger when running the jest from CLI.</p>
  
  <p>So when I tried to get a child inside Header</p>
  
  <pre><code>      const path = findDOMNode(self.component.refs.pathElemSpan);
        console.log("path="+path)
  </code></pre>
  
  <p>I got undefined on path</p>
  
  <p>Any suggestion?</p>
  
  <p>thanks</p>