test: keep path alias temp dirs out of repo

This commit is contained in:
Peter Steinberger
2026-04-26 09:09:02 +01:00
parent c99d72575e
commit e2ef5e2329

View File

@@ -5,10 +5,7 @@ import { withTempDir } from "../test-helpers/temp-dir.js";
import { assertNoPathAliasEscape } from "./path-alias-guards.js";
async function withAliasRoot(cb: (root: string) => Promise<void>): Promise<void> {
await withTempDir(
{ prefix: "openclaw-path-alias-", parentDir: process.cwd(), subdir: "root" },
cb,
);
await withTempDir({ prefix: "openclaw-path-alias-", subdir: "root" }, cb);
}
describe("assertNoPathAliasEscape", () => {