How can we improve this snippet ?
unknown
typescript
5 months ago
556 B
2
Indexable
vi.mock('@libs/data-access/queries', async importOriginal => { const originalModule = await importOriginal<any>(); return { ...originalModule, billingService: { ...originalModule.billingService, locationGroup: { useGetBillingInfoById: vi.fn().mockReturnValue({ data: { billing_information: {} }, isLoading: false, isRefetching: false, refetch: vi.fn(), }), }, }, }; }); const { getByTestId } = render(<BankPaymentItem locationGroupId="TEST_LOCATION_GROUP_ID" />);
Editor is loading...
Leave a Comment