aboutsummaryrefslogtreecommitdiffstats
path: root/tests/msw/handlers/index.ts
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2023-12-06 18:20:54 +0100
committerArmand Philippot <git@armandphilippot.com>2023-12-07 19:12:11 +0100
commitb8eb008dd5927fb736e56699637f5f8549965eae (patch)
tree648274babea3d3d09ed3e0f5f1fef013f94158fb /tests/msw/handlers/index.ts
parent802285872a2c57e7a5e130f32a2b45497d7687f1 (diff)
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
Diffstat (limited to 'tests/msw/handlers/index.ts')
-rw-r--r--tests/msw/handlers/index.ts2
1 files changed, 2 insertions, 0 deletions
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,
];