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/repositories/index.ts | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 tests/msw/handlers/repositories/index.ts (limited to 'tests/msw/handlers/repositories/index.ts') diff --git a/tests/msw/handlers/repositories/index.ts b/tests/msw/handlers/repositories/index.ts new file mode 100644 index 0000000..b29a41f --- /dev/null +++ b/tests/msw/handlers/repositories/index.ts @@ -0,0 +1,3 @@ +import { repositoryHandler } from './repository.handler'; + +export const repositoriesHandlers = [repositoryHandler]; -- cgit v1.2.3