Skip to content

Commit 1e4eb85

Browse files
fix: use directorySymlinkType in symlink calls in tests
1 parent 219cbbe commit 1e4eb85

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/skills/runtime/refresh.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ describe("ensureSkillsWatcher", () => {
357357
path.join(targetSkillDir, "SKILL.md"),
358358
"---\nname: linked-skill\ndescription: Linked\n---\n",
359359
);
360-
await fs.symlink(targetSkillDir, path.join(groupedLinkDir, "linked-skill"), "dir");
360+
await fs.symlink(targetSkillDir, path.join(groupedLinkDir, "linked-skill"), directorySymlinkType);
361361

362362
refreshModule.ensureSkillsWatcher({
363363
workspaceDir,
@@ -388,7 +388,7 @@ describe("ensureSkillsWatcher", () => {
388388
path.join(targetSkillsDir, "SKILL.md"),
389389
"---\nname: linked-root\ndescription: Linked root\n---\n",
390390
);
391-
await fs.symlink(targetSkillsDir, path.join(workspaceDir, "skills"), "dir");
391+
await fs.symlink(targetSkillsDir, path.join(workspaceDir, "skills"), directorySymlinkType);
392392

393393
refreshModule.ensureSkillsWatcher({ workspaceDir });
394394

@@ -420,7 +420,7 @@ describe("ensureSkillsWatcher", () => {
420420
path.join(outsideDir, "SKILL.md"),
421421
"---\nname: untrusted\ndescription: Untrusted\n---\n",
422422
);
423-
await fs.symlink(outsideDir, path.join(repoDir, "skills"), "dir");
423+
await fs.symlink(outsideDir, path.join(repoDir, "skills"), directorySymlinkType);
424424

425425
refreshModule.ensureSkillsWatcher({
426426
workspaceDir,
@@ -706,7 +706,7 @@ describe("ensureSkillsWatcher", () => {
706706
path.join(outsideDir, "SKILL.md"),
707707
"---\nname: untrusted-plugin\ndescription: Untrusted plugin\n---\n",
708708
);
709-
await fs.symlink(outsideDir, path.join(pluginDir, "skills", "untrusted"), "dir");
709+
await fs.symlink(outsideDir, path.join(pluginDir, "skills", "untrusted"), directorySymlinkType);
710710
const pluginSkills = await import("../loading/plugin-skills.js");
711711
vi.mocked(pluginSkills.resolvePluginSkillDirs).mockReturnValueOnce([pluginDir]);
712712

0 commit comments

Comments
 (0)