ObjToSchematic/tests/preamble.ts
2023-03-01 18:06:13 +00:00

15 lines
408 B
TypeScript

import fs from 'fs';
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, '..'));
const outPath = PathUtil.join(AppPaths.Get.tests, './out/');
if (!fs.existsSync(outPath)) {
fs.mkdirSync(outPath);
}
};