Files
claude-engineering-plugin/tests/compound-support-files.test.ts
Trevin Chow 5c0ec9137a
Some checks failed
CI / pr-title (push) Has been cancelled
CI / test (push) Has been cancelled
Release PR / release-pr (push) Has been cancelled
Release PR / publish-cli (push) Has been cancelled
refactor(cli)!: rename all skills and agents to consistent ce- prefix (#503)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-18 15:44:22 -07:00

31 lines
944 B
TypeScript

import { readFile } from "fs/promises"
import path from "path"
import { describe, expect, test } from "bun:test"
const PLUGIN_ROOT = path.join(process.cwd(), "plugins", "compound-engineering", "skills")
/** Canonical copies live in ce-compound; mirrors must stay identical. */
const SHARED_SUPPORT_FILES = [
"references/schema.yaml",
"references/yaml-schema.md",
"assets/resolution-template.md",
]
const SKILLS_WITH_COPIES = ["ce-compound", "ce-compound-refresh"]
describe("ce-compound support file drift", () => {
for (const file of SHARED_SUPPORT_FILES) {
test(`${file} is identical across ${SKILLS_WITH_COPIES.join(", ")}`, async () => {
const contents = await Promise.all(
SKILLS_WITH_COPIES.map((skill) =>
readFile(path.join(PLUGIN_ROOT, skill, file), "utf8"),
),
)
for (let i = 1; i < contents.length; i++) {
expect(contents[i]).toBe(contents[0])
}
})
}
})