title: Getting connect ECONNREFUSED 127.0.0.1:80 error when running supertest
body: <p>My student got a <code>connect ECONNREFUSED 127.0.0.1:80</code> error when running the following test:</p>
  
  <pre class="lang-js prettyprint-override"><code>it("returns status code 200", () =&gt; {
    return request(app)
      .get("./about")
      .expect(200)
  });
  </code></pre>
  
  <p>My student is using <code>supertest</code> for HTTP assertions on <code>superagent</code> requests. They are using <code>jest</code> as their test runner.</p>
  
  <h2>Background</h2>
  
  <p>One of my students encountered this problem and we eventually found the error to be a small typo in the route. </p>
  
  <p>Since it took us a while to find the solution, I thought of posting the question here in case anyone else who has the same problem can find the solution easily.</p>
  
  <p>Hope this helps someone. </p>