1 import type { MockedFunction } from 'vitest';
3 import * as useBitcoinAddressHighestIndexModule from '../../store/hooks/useBitcoinAddressHighestIndex';
5 export const mockUseGetBitcoinAddressHighestIndex = (
6 mockedValue?: MockedFunction<
7 ReturnType<typeof useBitcoinAddressHighestIndexModule.useGetBitcoinAddressHighestIndex>
10 const spy = vi.spyOn(useBitcoinAddressHighestIndexModule, 'useGetBitcoinAddressHighestIndex');
12 spy.mockReturnValue(mockedValue ?? vi.fn());