import { describe, expect, it } from "vitest"; import { ENV_REGISTRY } from "../../src/contracts/env.ts"; import { runtimeConfigV2ArtifactSchema } from "../../src/contracts/release-artifacts.ts"; // 09-02. A key the deployed config.json may carry needs an FE-REG-ENV row, so // check:registries sees it. A product key added to // PRODUCT_RUNTIME_CONFIG_FIELDS without a PRODUCT_ENV_REGISTRY row fails here. describe("FE-REG-ENV coverage", () => { it("has a runtime row for every V2 runtime config key", () => { const missing = Object.keys(runtimeConfigV2ArtifactSchema.shape).filter( (key) => !Object.hasOwn(ENV_REGISTRY, key) || ENV_REGISTRY[key as keyof typeof ENV_REGISTRY].phase !== "runtime", ); expect(missing).toEqual([]); }); });