diff --git a/packages/chess/src/modifiers/primitives/registry-count.test.ts b/packages/chess/src/modifiers/primitives/registry-count.test.ts new file mode 100644 index 0000000..fbd19bb --- /dev/null +++ b/packages/chess/src/modifiers/primitives/registry-count.test.ts @@ -0,0 +1,18 @@ +import { describe, it, expect } from "vitest"; +import { PRIMITIVE_REGISTRY } from "./index.js"; + +describe("PRIMITIVE_REGISTRY", () => { + it("should have exactly 22 registered primitives after barrel import", () => { + const count = PRIMITIVE_REGISTRY.list().length; + expect(count).toBe(22); + }); + + it("should list all primitive kinds with non-empty descriptor objects", () => { + const primitives = PRIMITIVE_REGISTRY.list(); + expect(primitives.length).toBeGreaterThan(0); + primitives.forEach((p) => { + expect(p).toHaveProperty("kind"); + expect(p.kind).toBeTruthy(); + }); + }); +});