title: Testing with Jest and Enzyme - dive is not a function
body: <p>Tried to replicate the <code>dive()</code> example from enzyme but continue to get <code>TypeError: wrapper.find(...).dive is not a function</code></p>
  
  <p><strong>Code:</strong></p>
  
  <pre><code>class Bar extends React.Component {
    render() {
      return (
        &lt;div&gt;
          &lt;div className="in-bar" /&gt;
        &lt;/div&gt;
      );
    }
  }
  
  class Foo extends React.Component {
    render() {
      return (
        &lt;div&gt;
          &lt;Bar /&gt;
        &lt;/div&gt;
      );
    }
  
  
  it('renders correctly', () =&gt; {
    const wrapper = shallow(&lt;Foo /&gt;);
    expect(wrapper.find('.in-bar').length).toBe(0);
    expect(wrapper.find(Bar).length).toBe(1);
    expect(wrapper.find(Bar).dive().find('.in-bar').length).toBe(1);
  });
  </code></pre>