Skip to content

Commit

Permalink
test: create mocks.ts file to test useFetch hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
Manussakis committed Nov 14, 2023
1 parent 2c92e56 commit b06f064
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/core/src/react/hooks/mocks.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export const mockUseFetchErrorResponse = {
error: 'Not found',
params: {},
data: undefined,
isMainQuery: true,
mutate: jest.fn(),
isLoading: false,
isValidating: false,
};

0 comments on commit b06f064

Please sign in to comment.