From e6be136d67ba73c37a102281702a5dbf2cd283ad Mon Sep 17 00:00:00 2001 From: Surajsm60720 <1ds22is166@dsce.edu.in> Date: Fri, 27 Nov 2026 16:33:31 +0530 Subject: [PATCH] test(server): ClaudeSkills fixtures pass on macOS disks The registry fixture now uses the resolved temp dir, since the CLI records a resolved cwd and macOS's temp dir sits behind the /var symlink. The synced case-clash row gets its own folder so a case-insensitive disk does not merge it with "pstack"; its manifest name "PSTACK" still exercises the same check. T3-file: apps/server/src/provider/Drivers/ClaudeSkills.test.ts: fixtures assumed a case-sensitive disk and a symlink-free temp dir, failing on macOS People-change: none (test only) Co-Authored-By: Claude Opus 5.5 --- apps/server/src/provider/Drivers/ClaudeSkills.test.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/apps/server/src/provider/Drivers/ClaudeSkills.test.ts b/apps/server/src/provider/Drivers/ClaudeSkills.test.ts index f9112247cab81..49c355663df14 100644 --- a/apps/server/src/provider/Drivers/ClaudeSkills.test.ts +++ b/apps/server/src/provider/Drivers/ClaudeSkills.test.ts @@ -89,7 +89,10 @@ it.layer(NodeServices.layer)("discoverClaudeSkills", (it) => { Effect.gen(function* () { const fs = yield* FileSystem.FileSystem; const path = yield* Path.Path; - const tempDir = yield* fs.makeTempDirectoryScoped({ prefix: "t3-claude-skills-" }); + // The CLI records a resolved cwd; macOS's temp dir sits behind the /var symlink. + const tempDir = yield* fs.realPath( + yield* fs.makeTempDirectoryScoped({ prefix: "t3-claude-skills-" }), + ); const configDir = path.join(tempDir, "claude-home"); const workspace = path.join(tempDir, "workspace"); const nestedWorkspace = path.join(workspace, "packages", "app"); @@ -486,7 +489,8 @@ it.layer(NodeServices.layer)("discoverClaudeSkills", (it) => { ["pstack-copy", "pstack", "copied"], ["tools", "tools", "synced-tool"], ["a_b", undefined, "renamed"], - ["PSTACK", "PSTACK", "shouted"], + // A distinct folder keeps the case-only name clash off case-insensitive disks. + ["pstack-shouted", "PSTACK", "shouted"], ] as const) { yield* writeSkill(path.join(bucket, directory, "skills"), skill, "# Synced"); if (prefix === undefined) continue; @@ -499,7 +503,7 @@ it.layer(NodeServices.layer)("discoverClaudeSkills", (it) => { yield* fs.writeFileString( path.join(bucket, "manifest.json"), JSON.stringify({ - plugins: ["pstack", "pstack-copy", "tools", "a:b. ", "PSTACK", "no-id"].map( + plugins: ["pstack", "pstack-copy", "tools", "a:b. ", "pstack-shouted", "no-id"].map( (name, index) => (name === "no-id" ? { name } : { pluginId: `plugin_0${index}`, name }), ), }),