title: How to print the request logs (like request url,request body, request queryParam) on supertest failure?
body: <p>I want to print or console log below details on failure for Supertest expect failure
  for the below request on success no need to print any thing on success</p>
  <pre><code>const result = await request(dummy_url).get(&quot;repos/Microsoft/TypeScript/pulls&quot;)
        .set(&quot;user-agent&quot;, &quot;Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:87.0) Gecko/20100101 Firefox/87.0&quot;)
        .expect(200)
        .then(response =&gt; {
          console.log(&quot;success&quot;);
          console.log(response);
          return response;
        }).catch(error =&gt; {
          console.log(&quot;error&quot;);
          // console.log(error);
          return 2;
        })
      console.log(result)
      done();
  </code></pre>
  <p>on failure lets say I modify the url as <code>dummy</code> instead of <code>pull</code>,
  I need to know the request url, path parma and request body if any,</p>
  <p>currenly on trying to add it in the above way it only gives the below error</p>
  <pre><code>Error: expected 200 &quot;OK&quot;, got 404 &quot;Not Found&quot;
          at Object.&lt;anonymous&gt; (/Users/thoughtworks/projects/api-test-supertest-jest-typescript/__tests__/github-routes/jest.test.ts:40:8)
          at /Users/thoughtworks/projects/api-test-supertest-jest-typescript/node_modules/jest-jasmine2/build/queueRunner.js:45:12
          at new Promise (&lt;anonymous&gt;)
          at mapper (/Users/thoughtworks/projects/api-test-supertest-jest-typescript/node_modules/jest-jasmine2/build/queueRunner.js:28:19)
          at /Users/thoughtworks/projects/api-test-supertest-jest-typescript/node_modules/jest-jasmine2/build/queueRunner.js:75:41
          at processTicksAndRejections (node:internal/process/task_queues:96:5)
      ----
          at Test.Object.&lt;anonymous&gt;.Test._assertStatus (/Users/thoughtworks/projects/api-test-supertest-jest-typescript/node_modules/supertest/lib/test.js:296:12)
          at /Users/thoughtworks/projects/api-test-supertest-jest-typescript/node_modules/supertest/lib/test.js:80:15
          at Test.Object.&lt;anonymous&gt;.Test._assertFunction (/Users/thoughtworks/projects/api-test-supertest-jest-typescript/node_modules/supertest/lib/test.js:311:11)
          at Test.Object.&lt;anonymous&gt;.Test.assert (/Users/thoughtworks/projects/api-test-supertest-jest-typescript/node_modules/supertest/lib/test.js:201:21)
          at localAssert (/Users/thoughtworks/projects/api-test-supertest-jest-typescript/node_modules/supertest/lib/test.js:159:12)
          at fn (/Users/thoughtworks/projects/api-test-supertest-jest-typescript/node_modules/supertest/lib/test.js:156:5)
          at Test.callback (/Users/thoughtworks/projects/api-test-supertest-jest-typescript/node_modules/superagent/src/node/index.js:902:3)
          at fn (/Users/thoughtworks/projects/api-test-supertest-jest-typescript/node_modules/superagent/src/node/index.js:1130:18)
          at IncomingMessage.&lt;anonymous&gt; (/Users/thoughtworks/projects/api-test-supertest-jest-typescript/node_modules/superagent/src/node/parsers/json.js:19:7)
          at Stream.emit (node:events:365:28)
  </code></pre>
  <p>things to note,
  I am using this in Typescript, inside the async function, thought this is not a blocker for now.</p>