mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-18 16:08:56 +00:00
skills/gsap was folded into the animation skill in #1349, but build-copy still listed it, so every CLI build printed "[build-copy] skill not found, skipping: skills/gsap". Drop the entry, and add a test that every bundled skill name has a SKILL.md so the next rename fails CI instead of warning. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
17 lines
693 B
TypeScript
17 lines
693 B
TypeScript
import { existsSync, readFileSync } from "node:fs";
|
|
import { describe, expect, it } from "vitest";
|
|
|
|
const copySource = readFileSync(new URL("../scripts/build-copy.mjs", import.meta.url), "utf-8");
|
|
|
|
describe("build-copy bundled skills", () => {
|
|
it("names only skills that exist in the repo's skills/ tree", () => {
|
|
const list = copySource.match(/for \(const skill of \[([^\]]+)\]\)/)?.[1] ?? "";
|
|
const skills = [...list.matchAll(/"([^"]+)"/g)].map((m) => m[1]);
|
|
expect(skills.length).toBeGreaterThan(0);
|
|
const missing = skills.filter(
|
|
(name) => !existsSync(new URL(`../../../skills/${name}/SKILL.md`, import.meta.url)),
|
|
);
|
|
expect(missing).toEqual([]);
|
|
});
|
|
});
|