title: Integration vs Unit tests for APIs
body: <p>Can we consider sending a request to an endpoint a unit or an integration test?</p>
  
  <pre><code>import lib from 'testing-lib';
  // ...
  const { testClient, expect } = lib;
  const response = testClient
      .request(app)
      .get('/test/endpoint/');
  // ...
  
  expect(response).fulfills.some.condition.ok
  </code></pre>
  
  <p>I have a feeling that this is an integration test because it will ascertain that every piece, that is in between the request going out and the response coming back, is working as expected. I need to know if my vague understanding is correct or if I am missing some details. </p>