From 94d773f10a86a6648e560f21c0a807ea74d09d99 Mon Sep 17 00:00:00 2001 From: gentlementlegen Date: Fri, 27 Dec 2024 16:33:39 +0900 Subject: [PATCH] test: fixed jest --- tests/__mocks__/handlers.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/__mocks__/handlers.ts b/tests/__mocks__/handlers.ts index f8fa4b0a..963a4197 100644 --- a/tests/__mocks__/handlers.ts +++ b/tests/__mocks__/handlers.ts @@ -56,6 +56,7 @@ export const handlers = [ ), // list events for an issue timeline http.get("https://api.github.com/repos/:owner/:repo/issues/:issue_number/timeline", () => HttpResponse.json(db.event.getAll())), + http.get("https://api.github.com/repos/:owner/:repo/issues/:issue_number/events", () => HttpResponse.json(db.event.getAll())), // update a pull request http.patch("https://api.github.com/repos/:owner/:repo/pulls/:pull_number", ({ params: { owner, repo, pull_number: pullNumber } }) => HttpResponse.json({ owner, repo, pullNumber })