diff --git a/server/test/hooks/activity.test.ts b/server/test/hooks/activity.test.ts index 6409c06f..60698db5 100644 --- a/server/test/hooks/activity.test.ts +++ b/server/test/hooks/activity.test.ts @@ -29,6 +29,7 @@ import deriveAddress from "../../utils/deriveAddress"; import keeper from "../../utils/keeper"; import publicClient from "../../utils/publicClient"; import anvilClient from "../anvilClient"; +import type { time } from "node:console"; const appClient = testClient(app); @@ -111,6 +112,7 @@ describe("address activity", () => { it("fails with unexpected error", async () => { const captureException = vi.spyOn(sentry, "captureException"); + captureException.mockImplementationOnce(() => ""); vi.spyOn(publicClient, "getCode").mockRejectedValue(new Error("Unexpected")); @@ -138,6 +140,7 @@ describe("address activity", () => { it("fails with transaction timeout", async () => { const captureException = vi.spyOn(sentry, "captureException"); + captureException.mockImplementation(() => ""); vi.spyOn(publicClient, "waitForTransactionReceipt").mockRejectedValue(new Error("Transaction Timeout"));