An open source design system that's fully customizable and agent ready
TypeScript
test(cli): two agent-docs tests remove their links with unlinkSync (#10263)
Christopher Chedeau6f2f02f3bf92
diff --git a/packages/cli/foundation/agent-docs/agent-docs.test.mjs b/packages/cli/foundation/agent-docs/agent-docs.test.mjsindex 5ad374a889..56ef39a1de 100644--- a/packages/cli/foundation/agent-docs/agent-docs.test.mjs+++ b/packages/cli/foundation/agent-docs/agent-docs.test.mjs@@ -1766,7 +1766,7 @@ describe('agent docs never go into the home folder', () => {try {expect(() => installAgentDocs(link)).toThrow(AgentDocsHomeError);} finally {- fs.rmSync(link);+ fs.unlinkSync(link);}});diff --git a/packages/cli/foundation/agent-docs/computer-agent-text.test.mjs b/packages/cli/foundation/agent-docs/computer-agent-text.test.mjsindex 56b5e84328..00bc3d7bf3 100644--- a/packages/cli/foundation/agent-docs/computer-agent-text.test.mjs+++ b/packages/cli/foundation/agent-docs/computer-agent-text.test.mjs@@ -341,7 +341,7 @@ describe('links and the copy', () => {writeComputerAgentText({home, command: 'astryx'});// A link as 0.7.x wrote it: relative to ~/.claude/skills, which the// system reads from ~/dotfiles/.claude/skills, so it dangles.- fs.rmSync(CLAUDE());+ fs.unlinkSync(CLAUDE());fs.symlinkSync(path.relative(path.dirname(CLAUDE()), FOLDER()),CLAUDE(),