我收到错误
TSError:⨯无法编译TypeScript: server / src / test / test.ts(2,45):错误TS2307:找不到模块“ fs”
我运行此测试时
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);
});
})