(overrides: Partial<ProfileSegment> & Pick<ProfileSegment, 'id' | 'summary'>)
| 72 | } |
| 73 | |
| 74 | function makeProfile(overrides: Partial<ProfileSegment> & Pick<ProfileSegment, 'id' | 'summary'>): ProfileSegment { |
| 75 | return { |
| 76 | id: overrides.id, |
| 77 | spaceId: SPACE_ID, |
| 78 | key: overrides.key ?? 'engineering-style', |
| 79 | summary: overrides.summary, |
| 80 | memoryIds: overrides.memoryIds ?? ['memory-1'], |
| 81 | confidence: overrides.confidence ?? 0.8, |
| 82 | state: overrides.state ?? 'active', |
| 83 | createdAt: overrides.createdAt ?? '2026-03-30T00:00:00.000Z', |
| 84 | updatedAt: overrides.updatedAt ?? '2026-03-30T00:00:00.000Z', |
| 85 | }; |
| 86 | } |
| 87 | |
| 88 | async function writeTestDocument(filePath: string, content: string): Promise<void> { |
| 89 | await fs.mkdir(path.dirname(filePath), { recursive: true }); |
no outgoing calls
no test coverage detected