You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gristlabs_grist-core/test/server/lib/helpers/PrepareFilesystemDirectoryF...

10 lines
320 B

import * as fse from "fs-extra";
import log from "app/server/lib/log";
export async function prepareFilesystemDirectoryForTests(directory: string) {
// Create the tmp dir removing any previous one
await fse.remove(directory);
await fse.mkdirs(directory);
log.warn(`Test logs and data are at: ${directory}/`);
}