diff --git a/src/seqta/utils/calendarSync/calendarSyncSettings.test.ts b/src/seqta/utils/calendarSync/calendarSyncSettings.test.ts index fdc381ea..5ad6ba91 100644 --- a/src/seqta/utils/calendarSync/calendarSyncSettings.test.ts +++ b/src/seqta/utils/calendarSync/calendarSyncSettings.test.ts @@ -1,4 +1,4 @@ -import { beforeEach, describe, expect, it } from "@jest/globals"; +import { beforeEach, describe, expect, it, jest } from "@jest/globals"; import browser from "@/lib/browser"; import { BSPLUS_CALENDAR_SYNC_IN_PROGRESS_KEY, @@ -75,8 +75,9 @@ describe("calendar sync cross-tab lock", () => { it("loses acquire when storage contains another tab's lockId after write", async () => { const key = calendarSyncInProgressStorageKey("google"); - const originalSet = browser.storage.local.set.getMockImplementation(); - browser.storage.local.set.mockImplementation(async (items: Record) => { + const setMock = jest.mocked(browser.storage.local.set); + const originalSet = setMock.getMockImplementation(); + setMock.mockImplementation(async (items: Record) => { if (key in items) { await originalSet?.({ [key]: { diff --git a/src/seqta/utils/calendarSync/syncRunner.ts b/src/seqta/utils/calendarSync/syncRunner.ts index 56d11d61..81b7965a 100644 --- a/src/seqta/utils/calendarSync/syncRunner.ts +++ b/src/seqta/utils/calendarSync/syncRunner.ts @@ -35,7 +35,7 @@ import type { GoogleCalendarSyncResult, } from "@/seqta/utils/googleCalendar/types"; -export type { CalendarSyncProvider as CalendarProvider }; +export type CalendarProvider = CalendarSyncProvider; const MSG = { accessToken: { google: "googleCalendarGetAccessToken", outlook: "outlookCalendarGetAccessToken" },