title: NestJS SuperTest Jest did not exit one second after the test run has completed
body: <p>I want to save some data out of a body and use it with the next request in my tests. I'm doing a post request and get back an id. This id I want to use to fetch data in other test.</p>
  <p>My code looks like this:</p>
  <pre class="lang-js prettyprint-override"><code>it('/auth/register (POST)', async () =&gt; {
     const test = await request(app.getHttpServer())
        .post('/api/auth/register')
        .send({username: &quot;Zoe&quot;})
        .expect(201)
     token = test.body.token
  })
  </code></pre>
  <p>The token is getting set and the code runs, however my jest test won't stop with and I'll get the error:</p>
  <pre><code>Jest did not exit one second after the test run has completed.
  
  This usually means that there are asynchronous operations that weren't stopped in your tests. Consider running Jest with `--detectOpenHandles` to troubleshoot this issue.
  </code></pre>
  <p>I know that I can do forceExit but I want to do it clean and understand the problem.</p>
  <p>When I do the jest return method, it's working.. However there Idk how to store the body somewhere..</p>
  <pre class="lang-js prettyprint-override"><code>it('/auth/register (POST)', () =&gt; {
     request(app.getHttpServer())
        .post('/api/auth/register')
        .send({username: &quot;Zoe&quot;})
        .expect(201)
  })
  </code></pre>