mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-04 19:28:46 +01:00
Test maintainer interaction skill coverage
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
ad022e4c05
commit
f2c41fef75
1 file changed
+15
@@ -61,6 +61,21 @@ describe("paperclip skill utils", () => {
|
||||
await expect(fs.access(path.resolve("scripts/paperclip-upload-artifact.sh"))).rejects.toThrow();
|
||||
});
|
||||
|
||||
it("keeps the create-issue-interaction-ui guide as a maintainer-only skill", async () => {
|
||||
const skillPath = path.resolve(".agents/skills/create-issue-interaction-ui/SKILL.md");
|
||||
const skillBody = await fs.readFile(skillPath, "utf8");
|
||||
const normalizedSkillBody = skillBody.replace(/\s+/g, " ");
|
||||
|
||||
expect(skillBody).toContain("name: create-issue-interaction-ui");
|
||||
expect(skillBody).toContain("Developer/maintainer skill");
|
||||
expect(normalizedSkillBody).toContain("Do NOT install this on production Paperclip agents");
|
||||
expect(skillBody).toContain("packages/shared/src/constants.ts");
|
||||
expect(skillBody).toContain("server/src/services/issue-thread-interactions.ts");
|
||||
expect(skillBody).toContain("ui/src/components/IssueThreadInteractionCard.tsx");
|
||||
expect(skillBody).toContain("packages/plugins/sdk/src/testing.ts");
|
||||
await expect(fs.access(path.resolve("skills/create-issue-interaction-ui/SKILL.md"))).rejects.toThrow();
|
||||
});
|
||||
|
||||
it("marks skills with required: false in SKILL.md frontmatter as optional", async () => {
|
||||
const root = await makeTempDir("paperclip-skill-optional-");
|
||||
cleanupDirs.add(root);
|
||||
|
||||
Reference in new issue
Block a user