title: Testing ExpressJS endpoint with Jest
body: <p>I'm trying to test an endpoint from my express application using Jest. I'm migrating from Mocha to try out Jest to improve the speed. However, my Jest test does not close? I'm at a loss...</p>
  
  <pre><code>process.env.NODE_ENV = 'test';
  const app = require('../../../index');
  const request = require('supertest')(app);
  
  it('should serve the apple-app-site-association file /assetlinks.json GET', async () =&gt; {
    const response = await request.get('/apple-app-site-association')
    expect(response.statusCode).toBe(200);
  });
  </code></pre>