I encountered an issue:
TSError: ⨯ Unable to compile TypeScript: server/src/test/test.ts(2,45): error TS2307: Cannot find module 'fs'
Every time I execute this particular test
import "mocha"
import { writeFileSync, readFileSync } from 'fs';
import migrator from '../utils/Migrator';
import {expect} from "chai"
describe("cleanTimestamp",()=>{
it("should round to nearest seconds",()=>{
// migrator.start()
const ans = migrator.cleanTimestamp(('(1558312599408)'))
expect(ans).equal(1558298199000);
});
})