UNPKG

ddl-manager

Version:

store postgres procedures and triggers in files

17 lines (13 loc) 343 B
import fs from "fs"; import fse from "fs-extra"; export function prepare(ROOT_TMP_PATH: string) { beforeEach(() => { if ( fs.existsSync(ROOT_TMP_PATH) ) { fse.removeSync(ROOT_TMP_PATH); } fs.mkdirSync(ROOT_TMP_PATH); }); afterEach(() => { fse.removeSync(ROOT_TMP_PATH); }); }