ObjToSchematic/tests/preamble.ts
2022-11-21 18:40:45 +00:00

10 lines
369 B
TypeScript

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, '..'));
FileUtil.mkdirIfNotExist(PathUtil.join(AppPaths.Get.tests, './out/'));
};