test(skills): use Windows junction fixtures

This commit is contained in:
Jinwoo-H
2026-08-11 10:49:19 -04:00
parent 7094c05985
commit 1e2d2e806f
+10 -2
View File
@@ -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 })