title: Jest Error: Uncaught [TypeError: XXX is not a function]
body: <p>I've a onClick on component1 that calls a hook in component2 passing props to him:</p>
  <p><strong>component1:</strong></p>
  <pre><code>function test(){
      return(
         &lt;div
            onClick=(() =&gt; this.props.changeExample(this.props.example)}
         /&gt;
  }
  </code></pre>
  <p><strong>component2</strong>:</p>
  <pre><code>changeExample(example){
      ...do some things
  }
  </code></pre>
  <p>But when I try to test the onClick event of component1 with the following code:</p>
  <pre><code>it(&quot;test onClick&quot;, () =&gt;{
      let wrapper
       wrapper = shallow &lt;component1 /&gt;
       const eventWrapper = wrapper.find(&quot;div&quot;)
       eventWrapper.simulate(&quot;click&quot;)
  }
  </code></pre>
  <p>I got the following error:</p>
  <p><strong>Error: Uncaught [TypeError: _this.props.changeExample is not a function]</strong></p>