title: Difference between jest.mock and jest.doMock
body: <p>I want this to be specific to a single test:</p>
  <pre><code>  it('should mock the module a single time', () =&gt; {
      jest.doMock('../../../../../../../components/HighCharts/HighCharts', () =&gt; {
        return () =&gt; &lt;div id=&quot;mock-line-chart&quot; /&gt;;
      });
    })
  </code></pre>
  <p>but it doesnt work. This works for the whole file:</p>
  <pre><code>jest.mock('../../../../../../../components/HighCharts/HighCharts', () =&gt; {
    return () =&gt; &lt;div id=&quot;my-special-div&quot; /&gt;;
  });
  </code></pre>
  <p>Am I not using this right? Where is the difference between doMock and mock. I it suitable to do a module mock for a single test only?</p>