Skip to content

Commit 4ecc202

Browse files
author
Tehan
committed
test(skill-memory): assert resolvedPath for the project-skill plain-path provenance case
cubic P2 (PR cortexkit#181): the 'PLAIN filesystem path for a PROJECT skill' test asserted tier/skillSource but not resolvedPath — the only plain-path project-skill test, so a path-join regression (missing /SKILL.md suffix, bad concat) would go undetected. Added the resolvedPath assertion to match the coverage pattern of every sibling test.
1 parent af0cb70 commit 4ecc202

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

packages/plugin/src/features/magic-context/skill-memory/provenance.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ describe("parseSkillProvenance", () => {
104104
test("parses a PLAIN filesystem path for a PROJECT skill", () => {
105105
const output = `Base directory for this skill: ${HOME}/projects/foo/.opencode/skills/my-skill`;
106106
const result = parseSkillProvenance(output, "my-skill");
107+
expect(result!.resolvedPath).toBe(
108+
`${HOME}/projects/foo/.opencode/skills/my-skill/SKILL.md`,
109+
);
107110
expect(result!.tier).toBe("project");
108111
expect(result!.skillSource).toBe("opencode-project");
109112
});

0 commit comments

Comments
 (0)