chore(8.0): final pre-RC1 sweep — API consistency, named errors, orphans, zero-cast codebase

This commit is contained in:
David Snelling 2026-06-11 14:51:00 -07:00
parent 970e08c466
commit 1f7e365a4e
237 changed files with 1951 additions and 49413 deletions

View file

@ -97,7 +97,7 @@ describe('Batch Import with Immediate Relations (v5.7.3 Fix)', () => {
expect(relationIds.length).toBe(372)
// 4. Verify all relationships exist (use higher limit to get all 372)
const relationships = await brain.getRelations({ from: documentId, limit: 500 })
const relationships = await brain.related({ from: documentId, limit: 500 })
expect(relationships.length).toBe(372)
})
@ -126,7 +126,7 @@ describe('Batch Import with Immediate Relations (v5.7.3 Fix)', () => {
expect(relationId).toBeTruthy()
// Verify relationship exists
const relations = await brain.getRelations(addResult.successful[0])
const relations = await brain.related(addResult.successful[0])
expect(relations.length).toBe(1)
expect(relations[0].to).toBe(addResult.successful[1])
})
@ -263,7 +263,7 @@ describe('Batch Import with Immediate Relations (v5.7.3 Fix)', () => {
expect(relationIds.length).toBe(100)
// 4. Verify structure
const childrenRelations = await brain.getRelations(rootId)
const childrenRelations = await brain.related(rootId)
expect(childrenRelations.length).toBe(100)
})