title: TypeError: Cannot read property 'values' of undefined in Jest testing
body: <p>I'm getting this error while tring to render the class. I didn't get any errors when I rendered App js which has this page as a part of it. I have used Jest JS for testing. Can someone please help me out?</p>
  <p>//Page1.js</p>
  <pre><code>&lt;CustomRadioGroup
                  label=&quot;What would you like to use the loan for?&quot;
                  name=&quot;loan&quot;
                  value={this.props.formikProps.values.loan}
                  type=&quot;radio&quot;
                  options={[
                    &quot;abc&quot;,
                    &quot;def&quot;,
                    &quot;ghi&quot;
                  ]}
                /&gt;
  </code></pre>
  <p>//Page1.test.js</p>
  <pre><code>it(&quot;render without crashing&quot;, () =&gt; {
      const {debug} = render(&lt;Page1/&gt;)
      debug();
  })
  </code></pre>
  <p>Error:</p>
  <pre><code>  26 |                 label=&quot;What would you like to use the loan for?&quot;
    27 |                 name=&quot;loan&quot;
  &gt; 28 |                 value={this.props.formikProps.values.loan}
       |                                               ^
  </code></pre>