title: TypeError: $(...).lightBox is not a function in Jest
body: <p>I am new in React testing in jest. I'm getting an error when I try to simulate 'click' event. I tried many solutions but not able to resolve this issue. My implementation is like this:</p>
  
  <pre><code>&lt;span 
      className="add" 
      ref={(targetNode)=&gt;
      {this.addEmploymentBtn=targetNode;}} 
      onClick={this.initDrawerCall}&gt;ADD JOB PROFILE
  &lt;/span&gt;
  
  
  initDrawerCall = () =&gt; {
      this.state.addEmploymentInstance = $(this.addEmploymentBtn).lightBox({
        // something here...  
      });
  }
  </code></pre>
  
  <p>My Test Case :</p>
  
  <pre><code>it('opens a LightBox', () =&gt; {
      wrapper.find('.add').simulate('click');
      wrapper.update();
  
      expect(wrapper.find(OnlineProfilesContainer).length).toEqual(1);
  });
  </code></pre>
  
  <p>Console Error :</p>
  
  <pre><code>TypeError: $(...).lightBox is not a function
  
    14 |
    15 |     initDrawerCall = () =&gt; {
  &gt; 16 |         this.state.addOnlineProfileInstance = $(this.addOnlineProfileBtn).lightBox({
       |                                                                           ^
    17 |             model: $(this.addOnlineProfileCont),
    18 |             dimens: { width: "50%"},
    19 |             open: { anim: "flipOpen",minTop:100,
  </code></pre>