@ryanstark24/sfgraph-skills 1.1.0 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -26,11 +26,11 @@ describe("skills installer", () => {
|
|
|
26
26
|
});
|
|
27
27
|
it("installs to the cursor target as .mdc files in Cursor's frontmatter shape", async () => {
|
|
28
28
|
const results = await install("cursor", { homeOverride: home });
|
|
29
|
-
expect(results.length).toBe(
|
|
29
|
+
expect(results.length).toBe(16);
|
|
30
30
|
const cursorDir = join(home, ".cursor", "rules");
|
|
31
31
|
const files = readdirSync(cursorDir);
|
|
32
32
|
expect(files.every((f) => f.endsWith(".mdc"))).toBe(true);
|
|
33
|
-
expect(files.length).toBe(
|
|
33
|
+
expect(files.length).toBe(16);
|
|
34
34
|
// Cursor-shaped frontmatter (the three keys Cursor's rule loader reads).
|
|
35
35
|
const sample = readFileSync(join(cursorDir, files[0] ?? ""), "utf8");
|
|
36
36
|
expect(sample).toMatch(/^description:/m);
|
|
@@ -48,9 +48,9 @@ describe("skills installer", () => {
|
|
|
48
48
|
const claudeCount = results.filter((r) => r.target === "claude").length;
|
|
49
49
|
const cursorCount = results.filter((r) => r.target === "cursor").length;
|
|
50
50
|
const vscodeCount = results.filter((r) => r.target === "vscode").length;
|
|
51
|
-
expect(claudeCount).toBe(
|
|
52
|
-
expect(cursorCount).toBe(
|
|
53
|
-
expect(vscodeCount).toBe(
|
|
51
|
+
expect(claudeCount).toBe(16);
|
|
52
|
+
expect(cursorCount).toBe(16);
|
|
53
|
+
expect(vscodeCount).toBe(16);
|
|
54
54
|
expect(existsSync(join(home, ".claude", "skills"))).toBe(true);
|
|
55
55
|
expect(existsSync(join(home, ".cursor", "rules"))).toBe(true);
|
|
56
56
|
});
|