title: How to test a React component with RouteComponentProps?
body: <p>I have a component that has props which extend <code>RouteComponentProps</code> that looks like this:</p>
  
  <pre><code>export interface RouteComponentProps&lt;P&gt; {
    match: match&lt;P&gt;;
    location: H.Location;
    history: H.History;
    staticContext?: any;
  }
  </code></pre>
  
  <p>Now, when I use my component in the app, I pass these props to it:</p>
  
  <pre><code>&lt;MyComponent
      match={this.props.match}
      location={this.props.location}
      history={this.props.history}
  /&gt;
  </code></pre>
  
  <p>The props are available already because it's running inside react router.</p>
  
  <p>Now, how do I test this component without <code>match</code>, <code>location</code>, <code>history</code> available?</p>
  
  <p>Do I need to mock them or is it supposed to somehow automatically load them with some helper function?</p>