From 8d77413337b6425aa132f812b1a21adcc735ff62 Mon Sep 17 00:00:00 2001 From: Lucas Date: Thu, 29 Oct 2026 11:29:44 -0700 Subject: [PATCH] test: resolve temporary directory before creating relative symlinks --- .../claude-code/skills/statechart/scripts/test/cli.test.ts | 2 +- pstack/skills/statechart/scripts/test/cli.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/harness/pstack/claude-code/skills/statechart/scripts/test/cli.test.ts b/harness/pstack/claude-code/skills/statechart/scripts/test/cli.test.ts index 97b71c30c..6d4284b0c 100644 --- a/harness/pstack/claude-code/skills/statechart/scripts/test/cli.test.ts +++ b/harness/pstack/claude-code/skills/statechart/scripts/test/cli.test.ts @@ -113,7 +113,7 @@ const launcherTools = () => { }; const linkedLauncher = () => { - const links = fs.mkdtempSync(path.join(os.tmpdir(), "statechart-links-")); + const links = fs.realpathSync(fs.mkdtempSync(path.join(os.tmpdir(), "statechart-links-"))); const [first, second] = [path.join(links, "a"), path.join(links, "b")]; fs.mkdirSync(first); fs.mkdirSync(second); diff --git a/pstack/skills/statechart/scripts/test/cli.test.ts b/pstack/skills/statechart/scripts/test/cli.test.ts index 97b71c30c..6d4284b0c 100644 --- a/pstack/skills/statechart/scripts/test/cli.test.ts +++ b/pstack/skills/statechart/scripts/test/cli.test.ts @@ -113,7 +113,7 @@ const launcherTools = () => { }; const linkedLauncher = () => { - const links = fs.mkdtempSync(path.join(os.tmpdir(), "statechart-links-")); + const links = fs.realpathSync(fs.mkdtempSync(path.join(os.tmpdir(), "statechart-links-"))); const [first, second] = [path.join(links, "a"), path.join(links, "b")]; fs.mkdirSync(first); fs.mkdirSync(second);