Skip to content

Commit

Permalink
fix mock
Browse files Browse the repository at this point in the history
  • Loading branch information
eokoneyo committed Jan 6, 2025
1 parent 89ee0d3 commit 72636c8
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@
import { renderHook } from '@testing-library/react';
import { useFetchGraphData } from './use_fetch_graph_data';

const mockUseQuery = jest.fn();
const mockUseQuery = jest.fn((...args: unknown[]) => ({
isLoading: true,
data: null,
isError: false,
isFetching: true,
}));

jest.mock('@tanstack/react-query', () => {
return {
Expand Down

0 comments on commit 72636c8

Please sign in to comment.