5d9ac5024a
A frozen shared constant forces a test needing one different field to either mutate shared state, leaking into every other test, or spread it by hand. The make*(overrides) factories cover both cases and were already doing the same job, so the constants were redundant. MOCK_PARENT_A and MOCK_PARENT_B were distinct identities that partner tests tell apart, so their uuid and name are now passed explicitly at each call site rather than left to a factory default -- the values those tests depend on stay visible where they are used. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RXMhc9nT6sNz1SL4j8dznL
27 lines
1.1 KiB
TypeScript
27 lines
1.1 KiB
TypeScript
/**
|
|
* Barrel for all typed test fixtures. Import from here:
|
|
*
|
|
* import { makeWorkspaceOverview, makePlanProposal, makeWorkspace } from '../../tests/fixtures'
|
|
*
|
|
* See the sibling files for what each group covers:
|
|
* - mockData.ts domain entities (Workspace, PersonalData, Child, VacationDays,
|
|
* ParentalLeaveFetch/TierData, LeaveWish, PlannedLeaveDay,
|
|
* DayOverride, Tip)
|
|
* - plan.ts the planning engine (PlanProposal and everything nested in it,
|
|
* plus the plan-apply request/response shapes)
|
|
* - analytics.ts Dashboard analytics (Age4Projection, WorkspaceOverview)
|
|
* - calendar.ts calendar metadata (CalendarDayEntry, CalendarWindow)
|
|
* - scraper.ts the FK scraper session lifecycle
|
|
* - workspace.ts small inline API response shapes (addPartner, etc.)
|
|
* - hooks.ts return values of src/context/* and src/hooks/* — these are
|
|
* the ones most test files reach for
|
|
*/
|
|
|
|
export * from './mockData'
|
|
export * from './plan'
|
|
export * from './analytics'
|
|
export * from './calendar'
|
|
export * from './scraper'
|
|
export * from './workspace'
|
|
export * from './hooks'
|