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