import { readFile } from "node:fs/promises"; import { describe, expect, it } from "vitest"; describe("registry governance manifest", () => { it("declares exactly nine single-owner registries and impact labels", async () => { const governance = JSON.parse( await readFile("config/contracts/registry-governance.json", "utf8"), ); const registries = /** @type {Array<{registryId: string, owner: string}>} */ ( governance.registries ); expect(governance.registries).toHaveLength(9); expect(new Set(registries.map((entry) => entry.registryId)).size).toBe( 9, ); expect(registries.every((entry) => entry.owner)).toBe(true); expect(governance.compatibilityImpact.allowed).toEqual([ "none", "additive", "behavior-change", "breaking", ]); }); });