title: Not able to get react component modal in Enzyme and jest
body: <p>I am getting error while running the test cases of &quot;TypeError: Cannot read property 'find' of undefined&quot;</p>
  <pre><code>it('should include modal and settings explorer', () =&gt; {
   wrapper = Enzyme.mount(&lt;FormAccess {...wrapperProps} /&gt;);
   **expect(wrapper.find(Modal).at(0).prop('isOpen')).toBe(true);**
  });
  </code></pre>
  <p>The Code looks like</p>
  <pre><code>let wrapper: CdsFormAccessWrapper;
  let wrapperProps: CDSFormAccessProps;
  
   beforeEach(() =&gt; {
  wrapperProps = {
    hidden: true,
    onClose: jest.fn(),
    formContext: { formId: '', formType: FormType.Main },
    entityDisplayName: '',
    entityName: ''
  };
  });
  </code></pre>