From 9117795bc4ee333d9ca1cc80986ae710e41f0291 Mon Sep 17 00:00:00 2001 From: Diego Rodrigues de Sa e Souza Date: Mon, 6 Jul 2026 19:27:41 -0300 Subject: [PATCH] =?UTF-8?q?test:=20bump=20provider=20count-guard=20169?= =?UTF-8?q?=E2=86=92170=20(digitalocean=20after=20hcnsec=20#6410)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/unit/providers-constants-split.test.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/unit/providers-constants-split.test.ts b/tests/unit/providers-constants-split.test.ts index a871ec1a0f..18e564fe1e 100644 --- a/tests/unit/providers-constants-split.test.ts +++ b/tests/unit/providers-constants-split.test.ts @@ -1,7 +1,7 @@ // Characterization of the providers.ts catalog split (god-file decomposition): the host became a // barrel that re-exports 10 data catalogs now living under constants/providers/*, and APIKEY is // merged from 6 semantic family files (apikey/.ts). Locks: the public surface (every catalog -// + helpers still exported), the spread-merge integrity (169 APIKEY entries, no loss/dup), and that +// + helpers still exported), the spread-merge integrity (170 APIKEY entries, no loss/dup), and that // load-time Zod validation still runs. Pure-data move → behavior must be identical. import { test } from "node:test"; import assert from "node:assert/strict"; @@ -31,12 +31,12 @@ test("barrel still exports every catalog + key helpers", () => { } }); -test("APIKEY_PROVIDERS merges the 6 family files into 169 entries (no loss / no dup)", async () => { +test("APIKEY_PROVIDERS merges the 6 family files into 170 entries (no loss / no dup)", async () => { const keys = Object.keys((P as Record).APIKEY_PROVIDERS); - assert.equal(keys.length, 169); - assert.equal(new Set(keys).size, 169, "duplicate keys after spread-merge"); + assert.equal(keys.length, 170); + assert.equal(new Set(keys).size, 170, "duplicate keys after spread-merge"); // the merged object's entry-count equals the sum of the 6 semantic family files; families are a - // strict partition (every provider in exactly one), so the sum must be exactly 169. + // strict partition (every provider in exactly one), so the sum must be exactly 170. const families: [string, string][] = [ ["gateways", "APIKEY_PROVIDERS_GATEWAYS"], ["frontier-labs", "APIKEY_PROVIDERS_FRONTIER"], @@ -56,7 +56,7 @@ test("APIKEY_PROVIDERS merges the 6 family files into 169 entries (no loss / no seen.add(k); } } - assert.equal(famTotal, 169, "families must partition all 169 providers"); + assert.equal(famTotal, 170, "families must partition all 170 providers"); }); test("AI_PROVIDERS Proxy aggregates all sections; lookups resolve", () => {