From 1e2d2e806f1c036d922adae89b08bb3373f9c8be Mon Sep 17 00:00:00 2001 From: Jinwoo-H Date: Tue, 11 Aug 2026 10:49:19 -0400 Subject: [PATCH] test(skills): use Windows junction fixtures --- src/main/skills/discovery.test.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/main/skills/discovery.test.ts b/src/main/skills/discovery.test.ts index 9f94e9f8347..cbe33cbad42 100644 --- a/src/main/skills/discovery.test.ts +++ b/src/main/skills/discovery.test.ts @@ -129,7 +129,11 @@ describe('skill discovery', () => { await writeFile(join(codexSkills, 'review', 'SKILL.md'), '# review') await mkdir(join(home, '.agents'), { recursive: true }) // Shared root is a symlink onto the Codex root: one canonical file, two roots. - await symlink(codexSkills, join(home, '.agents', 'skills'), 'dir') + await symlink( + codexSkills, + join(home, '.agents', 'skills'), + process.platform === 'win32' ? 'junction' : 'dir' + ) const result = await discoverSkills({ homeDir: home, repos: [], includeCwd: false }) @@ -148,7 +152,11 @@ describe('skill discovery', () => { await writeFile(join(claudeSkills, 'orchestration', 'SKILL.md'), '# orchestration') // `npx skills add --global` links a provider home onto an existing install. await mkdir(join(home, '.grok'), { recursive: true }) - await symlink(claudeSkills, join(home, '.grok', 'skills'), 'dir') + await symlink( + claudeSkills, + join(home, '.grok', 'skills'), + process.platform === 'win32' ? 'junction' : 'dir' + ) const result = await discoverSkills({ homeDir: home, repos: [], includeCwd: false })