title: How to reset fetch-mock for each test?
body: <p>I have several React tests using Jest and <a href="https://github.com/wheresrhys/fetch-mock" rel="nofollow noreferrer"><code>fetch-mock</code></a>, each one of them doing some get operations, so what I initially did was:</p>
  
  <pre><code>beforeAll(){
      fetchMock.get(`*`, JSON.stringify(CORRECTRESPONSE));
  }
  </code></pre>
  
  <p>However, in some tests I need to return wrong data as answer, something like:</p>
  
  <pre><code>test('Wrong get answer', ()=&gt; {
     fetchMock.get('*', JSON.stringify(WRONGRESPONSE), {overwriteRoutes: true});
  }));
  </code></pre>
  
  <p>So, since I need to reset the response for the following tests (and so return <code>CORRECTRESPONSE</code>, I came up with this solution:</p>
  
  <pre><code>beforeEach(){
      fetchMock.get(`*`, JSON.stringify(CORRECTRESPONSE));
  }
  
  afterEach(fetchMock.restore);
  </code></pre>
  
  <p>Is there anyway better to do this?</p>