mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-07 13:31:23 +00:00
perf(test): speed up update-cli unit tests
This commit is contained in:
@@ -144,7 +144,7 @@ describe("update-cli", () => {
|
|||||||
|
|
||||||
const createCaseDir = async (prefix: string) => {
|
const createCaseDir = async (prefix: string) => {
|
||||||
const dir = path.join(fixtureRoot, `${prefix}-${fixtureCount++}`);
|
const dir = path.join(fixtureRoot, `${prefix}-${fixtureCount++}`);
|
||||||
await fs.mkdir(dir, { recursive: true });
|
// Tests only need a stable path; the directory does not have to exist because all I/O is mocked.
|
||||||
return dir;
|
return dir;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user