Skip to content

Commit 2e3cf2c

Browse files
committed
test(cli): ignore markdown anchors when checking sandbox skill links
1 parent 505dece commit 2e3cf2c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎packages/cli/tests/skill-sandbox-reference.test.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ test("Sandbox is a valid standalone skill aligned with the CLI version", () => {
2323
expect(frontmatter.metadata.version).toBe(cliPackage.version);
2424

2525
for (const link of skillMarkdown.matchAll(/\]\(([^)]+)\)/g)) {
26-
expect(existsSync(join(sandboxSkillDirectory, link[1]))).toBe(true);
26+
const target = link[1].split("#")[0];
27+
expect(existsSync(join(sandboxSkillDirectory, target)), target).toBe(true);
2728
}
2829
});
2930

0 commit comments

Comments
 (0)