mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 07:40:44 +00:00
test: keep path alias temp dirs out of repo
This commit is contained in:
@@ -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", () => {
|
||||
|
||||
Reference in New Issue
Block a user