title: Jest testing multiple test file port 3000 already in use
body: <p>I'm creating a testing for my express app. The project has multiple test files. In each module the server instance is required at beforeEach() method and closed at afterEach() method. but after testing one or two of the modules it'll raise address already in use and jest won't terminate.</p>
  
  <pre><code>beforeEach(() =&gt;  {
  
      server = require('./../../../bin/www')});
  afterEach(async() =&gt; { 
      server.close();
      /**
       * database cleanup logic goes here.
       */
  
   });
  </code></pre>
  
  <p>I want jest to terminate after all the test suites are completed.</p>