test: add isFetching to mock return values
All checks were successful
CI / lint (pull_request) Successful in 2m8s
CI / test (pull_request) Successful in 1m53s
CI / build (pull_request) Successful in 2m16s

This commit is contained in:
Sergey Krylov 2026-06-18 07:02:50 +03:00
parent ef37977c2c
commit 4f5b141179

View File

@ -56,6 +56,7 @@ function mockUseBrokerPositions(...positions: BrokerPosition[]) {
asOf: '2026-06-17T00:00:00.000Z',
},
isLoading: false,
isFetching: false,
error: null,
} as any;
});
@ -83,6 +84,7 @@ describe('Broker pages', () => {
},
],
isLoading: false,
isFetching: false,
error: null,
} as any);
@ -110,6 +112,7 @@ describe('Broker pages', () => {
asOf: '2026-06-16T00:00:00.000Z',
},
isLoading: false,
isFetching: false,
error: null,
} as any);
vi.spyOn(operationsHook, 'useBrokerOperations').mockReturnValue({
@ -145,6 +148,7 @@ describe('Broker pages', () => {
asOf: '2026-06-16T00:00:00.000Z',
},
isLoading: false,
isFetching: false,
error: null,
} as any);
mockUseBrokerPositions(
@ -188,6 +192,7 @@ describe('Broker pages', () => {
asOf: '2026-06-17T00:00:00.000Z',
},
isLoading: false,
isFetching: false,
error: null,
} as any);
vi.spyOn(operationsHook, 'useBrokerOperations').mockReturnValue({
@ -199,6 +204,7 @@ describe('Broker pages', () => {
asOf: '2026-06-17T00:00:00.000Z',
},
isLoading: false,
isFetching: false,
error: null,
} as any);
mockUseBrokerPositions(
@ -264,6 +270,7 @@ describe('Broker pages', () => {
asOf: '2026-06-17T00:00:00.000Z',
},
isLoading: false,
isFetching: false,
error: null,
} as any);
vi.spyOn(operationsHook, 'useBrokerOperations').mockReturnValue({
@ -322,6 +329,7 @@ describe('Broker pages', () => {
asOf: '2026-06-17T00:00:00.000Z',
},
isLoading: false,
isFetching: false,
error: null,
} as any);
mockUseBrokerPositions();
@ -361,6 +369,7 @@ describe('Broker pages', () => {
asOf: '2026-06-17T00:00:00.000Z',
},
isLoading: false,
isFetching: false,
error: null,
} as any);
const operationsSpy = vi.spyOn(operationsHook, 'useBrokerOperations').mockImplementation(
@ -431,6 +440,7 @@ describe('Broker pages', () => {
asOf: '2026-06-17T00:00:00.000Z',
},
isLoading: false,
isFetching: false,
error: null,
}) as any,
);