title: Jest Test React Router Link navigation
body: <p>I have the following component that I want to test using Jest Enzyme.</p>
  <pre><code>&lt;BrowserRouter&gt;
     &lt;Switch&gt;
        &lt;Route path='/' component={Home}/&gt;
        &lt;Route path='/view' component={View}/&gt;
     &lt;/Switch&gt;
  &lt;/BrowserRouter&gt;
  
  class Home extends React.Component {
      render {
        &lt;Link to='/view'&gt;
           &lt;button onClick={() =&gt; foo}&gt;View Data&lt;/button&gt;
        &lt;/Link&gt;
      }
  }
  </code></pre>
  <p>This code is working in application correctly.
  However, when I test button click using jest-enzyme, component path or content doesn't change</p>
  <pre><code>it('should redirect on button click', () =&gt; {
     const component= mount(
        &lt;MemoryRouter initialEntries={{['/', '/view']}}&gt;
           &lt;Route path='/' component={Home}/&gt;
           &lt;Route path='/view' component={View}/&gt;
        &lt;/MemoryRouter&gt;
     )
  
     expect(component.find('Home')).toHaveLength(1); //passes
     expect(component.find('LinkAnchor').props().href).toEqual('/view'); //this also passes
     component.find('button').simulate('click');
     expect(component.find('View').toHaveLength(1); //This FAILS
  });
  </code></pre>
  <p>My question:</p>
  <ol>
  <li>Is only way to test Link could be checking href in it's internal a tag?</li>
  <li>Can we test page navigation like it works properly for ?</li>
  </ol>