title: Why isn't Jest applying my timeout when I use jest.setTimeout()?
body: <p>I know I can <a href="https://jestjs.io/docs/jest-object#jestsettimeouttimeout" rel="nofollow noreferrer">use <code>jest.setTimeout()</code> to set a custom timeout for a test</a>. I'm doing this below. <code>MINUTE</code> has the value <code>60 * 1000</code>.</p>
  <p>Why isn't Jest applying my timeout?</p>
  <pre><code>    thrown: &quot;Exceeded timeout of 5000 ms for a test.
      Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test.&quot;
  
        13 |
        14 | describe(`integration with API provider`, () =&gt; {
      &gt; 15 |   it(`works`, async () =&gt; {
           |   ^
        16 |     // Just in case network is slow.
        17 |     jest.setTimeout(1 * MINUTE);
  </code></pre>