title: How to mock axios dependency using mocha in TypeScript?
body: <p>Here is my sample src/main.ts file</p>
  <pre><code>import axios from 'axios';
  export async function main() {
       const URL = 'test url';
       const secretKey = 'Test key'
       const response = await axios.get(URL, {
          headers: { 'Content-Type': 'application/json', 'KEY': secretKey },
      });
  </code></pre>
  <p>I want to write my test case in spec/test.ts file using mocha. Can someone show me how to create a mock and stub for axios dependency.</p>