title: Mock child component in React
body: <p>Is there a clean way to be able to mock a child element when unit testing an element, using Mocha and friends?</p>
  
  <p>For example, say I have something like this:</p>
  
  <pre><code>&lt;Parent&gt;
    &lt;Child aProp={ this.props.clickChild() }/&gt;
  &lt;/Parent&gt;
  </code></pre>
  
  <p>I want to mock it so I can manually trigger <code>aProp</code> and then tell that it called the <code>clickChild</code> that I passed it.</p>