ObjToSchematic/tests/preamble.ts

10 lines
369 B
TypeScript
Raw Permalink Normal View History

import { FileUtil } from '../src/util/file_util';
import { Logger } from '../src/util/log_util';
import { AppPaths, PathUtil } from '../src/util/path_util';
export const TEST_PREAMBLE = () => {
Logger.Get.disableLogToFile();
AppPaths.Get.setBaseDir(PathUtil.join(__dirname, '..'));
2022-11-22 02:40:45 +08:00
FileUtil.mkdirIfNotExist(PathUtil.join(AppPaths.Get.tests, './out/'));
};