test(8.0): begin integration rot pass — clear-persistence (drop COW internals) + metadata-only addRelationship→relate
This commit is contained in:
parent
4741e23d45
commit
c600468bb5
2 changed files with 89 additions and 204 deletions
|
|
@ -12,7 +12,7 @@
|
|||
import { describe, it, expect, beforeEach, afterEach } from 'vitest'
|
||||
import { Brainy } from '../../src/brainy.js'
|
||||
import { VirtualFileSystem } from '../../src/vfs/VirtualFileSystem.js'
|
||||
import { NounType } from '../../src/types/graphTypes.js'
|
||||
import { NounType, VerbType } from '../../src/types/graphTypes.js'
|
||||
import { mkdtempSync, rmSync } from 'fs'
|
||||
import { tmpdir } from 'os'
|
||||
import { join } from 'path'
|
||||
|
|
@ -129,7 +129,7 @@ describe('Metadata-Only Comprehensive Integration (v5.11.1)', () => {
|
|||
type: NounType.Person
|
||||
})
|
||||
|
||||
await brain.addRelationship(alice, 'knows', bob)
|
||||
await brain.relate({ from: alice, to: bob, type: VerbType.Knows })
|
||||
|
||||
// getVerbsBySource uses graph index
|
||||
const relationships = await brain.getVerbsBySource(alice)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue