refinement phase 4

This commit is contained in:
hamid
2026-07-13 12:29:00 +03:30
parent 314763f764
commit 64f6aa45c9
27 changed files with 308 additions and 243 deletions
@@ -8,6 +8,13 @@ jest.mock('next-intl', () => ({
}));
jest.mock('notistack', () => ({ useSnackbar: () => ({ enqueueSnackbar: jest.fn() }) }));
// This is a behavioural test of the two-stage-disclosure gate; it uses the in-memory bookings mock as
// its data fixture (seeded booking 5001 + care instructions). Pin the seam to the mock so the test is
// independent of the production `USE_BOOKINGS_MOCK` flag (flipped to real in refinement-phase-4).
jest.mock('@/services/bookings/apis', () => ({
bookingsApi: jest.requireActual('@/services/bookings/apis/mockApi').bookingsMockApi,
}));
import BookingDetailView from './BookingDetailView';
import { bookingsApi } from '@/services/bookings/apis';