title: Jest: Wait for an async test to finish before running the next one
body: <p>Assuming I have these test cases (with <code>jest</code> and <code>supertest</code>):</p>
  
  <pre><code>describe('Test actors', async () =&gt; {
    const params = { /* ... */ }
    let actorId
  
    test(`Create an actor ${actorsUrl}`, async () =&gt; {
      const response = await request(app.callback())
        .post(actorsUrl)
        .send(params)
        .set('Accept', 'application/json')
        .set('Content-Type', 'application/json')
        .expect(200)
      expect(response.body.name).toBe(params.name)
      expect(response.body.address).toBe(params.address)
      actorId = response.body.id
    })
  
    test(`Get the actor created ${actorsUrl}/${actorsUrl}`, async () =&gt; {
      const response = await request(app.callback())
        .get(`${actorsUrl}/${actorsUrl}`)
        .set('Accept', 'application/json')
        .expect(200)
      expect(response.body.name).toBe(params.name)
      expect(response.body.address).toBe(params.address)
    })
  })
  </code></pre>
  
  <p>I want to wait for first test to finish before running the second one (because the first one creates a <code>Actor</code> and the second one ask the API for the created <code>Actor</code>). Running this code fails because the actor is not already created.</p>
  
  <p>Is there a way to wait for the first test to finish before calling the second one?</p>