From b8eb008dd5927fb736e56699637f5f8549965eae Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Wed, 6 Dec 2023 18:20:54 +0100 Subject: refactor(hooks): replace useGithubApi with useGithubRepoMeta * use GraphQL API instead of REST (the inconvenient however is that we now need an authorization token...) * move fetcher in services * add tests * mock response using MSW --- tests/msw/handlers/index.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/msw/handlers/index.ts') diff --git a/tests/msw/handlers/index.ts b/tests/msw/handlers/index.ts index 85a2300..bfdeb95 100644 --- a/tests/msw/handlers/index.ts +++ b/tests/msw/handlers/index.ts @@ -1,11 +1,13 @@ import { commentsHandlers } from './comments'; import { postsHandlers } from './posts'; +import { repositoriesHandlers } from './repositories'; import { thematicsHandlers } from './thematics'; import { topicsHandlers } from './topics'; export const handlers = [ ...commentsHandlers, ...postsHandlers, + ...repositoriesHandlers, ...thematicsHandlers, ...topicsHandlers, ]; -- cgit v1.2.3