title: How can i deal with JEST handles potentially keeping Jest from exiting when using node-ftech
body: <p>I have written all my tests and i am receiving the below error on node-fetch when i test although all my tests pass</p>
  <pre><code>Jest has detected the following 5 open handles potentially keeping Jest from exiting:
  </code></pre>
  <pre><code>11 | describe('the vip rotating ips', () =&gt; {
       12 |   test('the VIP json url exists', async () =&gt; {
     &gt; 13 |     await nodeFetch('https://go-vip.net/ip-ranges.json')
          |                    ^
       14 |       .then((r) =&gt; {
       15 |         expect(r.status).toBe(200);
       16 |       })
  </code></pre>
  <p>The whole test is</p>
  <pre><code>test('the VIP json url exists', async () =&gt; {
     await nodeFetch('https://go-vip.net/ip-ranges.json')
       .then((r) =&gt; {
         expect(r.status).toBe(200);
       })
       .catch((e) =&gt; {
         fail(e);
       });
   });
  
  </code></pre>
  <p>Ive sought out numerous stackoverlflow solutions and documents however none seem to either give me a full explanation of the issue not a solution that suits my case.</p>
  <p>I believe it's something related to timeouts</p>
  <p>Can someone explain to me the problem and help me deliver a solution.</p>