/** Shared test fixtures — Dashboard analytics (`GET /api/analytics/overview`). */ import type { Age4Projection, WorkspaceOverview } from '@/types' export function makeAge4Projection(overrides: Partial = {}): Age4Projection { return { personalDataUuid: 'pd-a', childId: 'child-1', birthDate: '2025-06-01', fourthBirthday: '2029-06-01', totalDays: 240, daysUsed: 30, plannedDaysBeforeB4: 10, projectedLeftAtB4: 200, savableAfterB4: 96, expiringAtB4: 60, savableCapAtB4: 96, ...overrides, } } export function makeWorkspaceOverview(overrides: Partial = {}): WorkspaceOverview { return { workspaceId: 'ws-1', childId: 'child-1', parentProjections: [], combinedDaysUsed: 30, combinedDaysLeft: 270, combinedExpiringAtB4: 100, ...overrides, } }