/** * Shared test fixtures — small ad hoc API response shapes that aren't a * named type in `src/types/` (they're inline return-type object literals in * `src/services/api.ts`). Derived via `Awaited>` * instead of redeclaring the shape, so a change to the real signature fails * the fixture at compile time rather than drifting silently. */ import type { addPartner } from '@/services/api' /** Shared by `addPartner` and `updateParentSettings` — both return the same * `{ uuid, name, salary_type, employment_status }` wire shape. */ export type PartnerMemberResponse = Awaited> export function makePartnerMemberResponse( overrides: Partial = {}, ): PartnerMemberResponse { return { uuid: 'pd-b', name: 'Partner', salary_type: 'monthly', employment_status: 'employed', ...overrides, } }