Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix(test): catalogTypes DDL-literal test asserts no hardcoded type CHECK
[._.]/ Adam Eivy1592e5c4ceee
diff --git a/server/lib/catalogTypes.test.js b/server/lib/catalogTypes.test.jsindex 6ab0a26629..95979787a5 100644--- a/server/lib/catalogTypes.test.js+++ b/server/lib/catalogTypes.test.js@@ -104,10 +104,13 @@ function ftsKeys(source) {}describe('catalogTypes — DDL literals match registry', () => {- it('the type CHECK list in both SQL sources equals INGREDIENT_TYPE_IDS', () => {- const want = [...INGREDIENT_TYPE_IDS].sort();- expect(checkSet(INIT_SQL).sort()).toEqual(want);- expect(checkSet(DB_JS).sort()).toEqual(want);+ it('neither SQL source hardcodes a type CHECK (the registry is the sole type gate)', () => {+ // The DB `CHECK (type IN (…))` was dropped — type validity now lives only in+ // the INGREDIENT_TYPES registry + its Zod enum. Assert neither init-db.sql+ // nor db.js reintroduces a hardcoded `type IN (…)` CHECK that could silently+ // drift from the registry (and would also have to be migrated per new type).+ expect(checkSet(INIT_SQL)).toBeNull();+ expect(checkSet(DB_JS)).toBeNull();});it('the search_tsv payload field set in both SQL sources equals FTS_PAYLOAD_FIELDS', () => {