diff --git a/.gitignore b/.gitignore index b907674..b116fef 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ /dist -/.test-dist +/.temp public/ node_modules/ diff --git a/scripts/clean.ts b/scripts/clean.ts index 9e20fa6..5eaec83 100644 --- a/scripts/clean.ts +++ b/scripts/clean.ts @@ -8,7 +8,7 @@ import * as path from "path"; const ROOT_DIR = path.resolve(__dirname, ".."); const DIST_DIR = path.join(ROOT_DIR, "dist"); -const TEST_DIR = path.join(ROOT_DIR, ".test-dist"); +const TEST_DIR = path.join(ROOT_DIR, ".temp"); const rmdirRecursive = (dirPath: string): void => { if (!fs.existsSync(dirPath)) { diff --git a/test/helpers/e2e.ts b/test/helpers/e2e.ts index 0eea984..1e5cdec 100644 --- a/test/helpers/e2e.ts +++ b/test/helpers/e2e.ts @@ -20,7 +20,7 @@ export const wait = async (timeMs: number): Promise => { }); }; -const TEST_DIST_PATH = path.resolve(__dirname, "..", "..", ".test-dist"); +const TEMP_PATH = path.resolve(__dirname, "..", "..", ".temp"); /** * Perform an operation within a unique temporary directory created within a @@ -38,8 +38,8 @@ const TEST_DIST_PATH = path.resolve(__dirname, "..", "..", ".test-dist"); export const withTempDir = async ( op: (tempDirPath: string) => Promise | void ): Promise => { - await fs.mkdir(TEST_DIST_PATH, { recursive: true }); - const tempDirPath = await fs.mkdtemp(`${TEST_DIST_PATH}/`); + await fs.mkdir(TEMP_PATH, { recursive: true }); + const tempDirPath = await fs.mkdtemp(`${TEMP_PATH}/`); try { await op(tempDirPath); } catch (error) {