title: How to mock ref object in jest?
body: <p>I have a component that one of its props is a ref to another element. Dom structure looks like this:</p>
  
  <pre><code>&lt;div ref={tagRef}&gt;text&lt;/div&gt;
  &lt;Component tagRef={tagRef}/&gt;
  </code></pre>
  
  <p>How can I mock the tagRef?</p>
  
  <pre><code>render(&lt;Component tagRef={tagRef}/&gt;)
  </code></pre>