title: Unable to compile TypeScript: Cannot find module 'fs'
body: <p>I get error </p>
  
  <blockquote>
    <p>TSError: ⨯ Unable to compile TypeScript:
    server/src/test/test.ts(2,45): error TS2307: Cannot find module 'fs'</p>
  </blockquote>
  
  <p>When I run this test</p>
  
  <pre><code>import "mocha"
  import { writeFileSync, readFileSync } from 'fs';
  import migrator from '../utils/Migrator';
  import {expect} from "chai"
  
  describe("cleanTimestamp",()=&gt;{
      it("should round to nearest seconds",()=&gt;{
          // migrator.start()
         const ans =  migrator.cleanTimestamp(('(1558312599408)'))
        expect(ans).equal(1558298199000);
      });
  })
  </code></pre>