test: keep path alias temp dirs out of repo · openclaw/openclaw@e2ef5e2
steipete
·
2026-04-26
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -5,10 +5,7 @@ import { withTempDir } from "../test-helpers/temp-dir.js";
|
5 | 5 | import { assertNoPathAliasEscape } from "./path-alias-guards.js"; |
6 | 6 | |
7 | 7 | async function withAliasRoot(cb: (root: string) => Promise<void>): Promise<void> { |
8 | | -await withTempDir( |
9 | | -{ prefix: "openclaw-path-alias-", parentDir: process.cwd(), subdir: "root" }, |
10 | | -cb, |
11 | | -); |
| 8 | +await withTempDir({ prefix: "openclaw-path-alias-", subdir: "root" }, cb); |
12 | 9 | } |
13 | 10 | |
14 | 11 | describe("assertNoPathAliasEscape", () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。