title: TypeError: dispatch is not a function when I try to test a method using JEST
body: <p>I have a method that receives some values as a parameter and then dispatches an action. The problem is that when I shallow my component to test this method, I have an error saying that dispatch is not a function. </p>
  
  <p>TEST:</p>
  
  <pre><code>test('it changes the state when submit is clicked', () =&gt; {
      const wrapper = shallow(&lt;WizardForm store={store}/&gt;);
      const values = {
      entrySign: 'archivoSign',
      signCertificateFile: 'file',
      signCertificate: 'text',
      entryAuth: 'notArchivoAuth',
      authCertificateFile: 'file',
      authCertificate: 'text'
  }
  const form = wrapper.instance();
  //in this method I get the error
  form.submit(values)
  </code></pre>
  
  <p>METHOD:</p>
  
  <pre><code>submit(values) {
    var authCertificate = this.checkAuth(values);
    var signCertificate = this.checkSign(values);
    let req = {
      authCertificate: authCertificate,
      signCertificate: signCertificate,
      userId: this.state.userId
    }
    const { dispatch } = this.props
    dispatch({type: 'CERTIFICATES_FETCH_REQUESTED', payload: {req}})
  }
  </code></pre>
  
  <p>Can anyone help me? I do not know what I am doing wrong.
  Thanks in advance!</p>