How can we improve this snippet ?
unknown
typescript
a year ago
556 B
5
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