From e31ba894f8332b71a8867a4b689762aff766fc80 Mon Sep 17 00:00:00 2001 From: David Snelling Date: Tue, 16 Jun 2026 10:57:05 -0700 Subject: [PATCH] test(8.0): use valid camelCase VerbType values in test-factory MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit createRelateParams / createTestRelation / createKnowledgeGraphTestData cast PascalCase strings ('RelatedTo', 'DependsOn', 'Contains') `as VerbType` — the cast hid the mismatch from TS, but 8.0's verb-type validation rejects them at runtime ("invalid VerbType"). Corrected to the real enum values (relatedTo, dependsOn, contains), matching the already-correct social-network helpers. Unblocks find-unified-integration setup (59 failing → 40 passing). --- tests/helpers/test-factory.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/helpers/test-factory.ts b/tests/helpers/test-factory.ts index 9b276f40..40bbe325 100644 --- a/tests/helpers/test-factory.ts +++ b/tests/helpers/test-factory.ts @@ -155,7 +155,7 @@ export function createRelateParams(from: string, to: string, overrides: Partial< return { from, to, - type: 'RelatedTo' as VerbType, + type: 'relatedTo' as VerbType, weight: 1.0, metadata: generateTestMetadata(), service: 'test', @@ -259,10 +259,10 @@ export function createKnowledgeGraphTestData() { ] const relations = [ - createTestRelation({ from: 'earth', to: 'sun', type: 'DependsOn' as VerbType }), - createTestRelation({ from: 'moon', to: 'earth', type: 'DependsOn' as VerbType }), - createTestRelation({ from: 'mars', to: 'sun', type: 'DependsOn' as VerbType }), - createTestRelation({ from: 'earth', to: 'moon', type: 'Contains' as VerbType }), + createTestRelation({ from: 'earth', to: 'sun', type: 'dependsOn' as VerbType }), + createTestRelation({ from: 'moon', to: 'earth', type: 'dependsOn' as VerbType }), + createTestRelation({ from: 'mars', to: 'sun', type: 'dependsOn' as VerbType }), + createTestRelation({ from: 'earth', to: 'moon', type: 'contains' as VerbType }), ] return { entities, relations }