tweak: update rolling perofrmance

This commit is contained in:
2026-06-27 14:24:08 +09:30
parent eae2e0587c
commit 2163f06de9
3 changed files with 17 additions and 6 deletions
@@ -97,6 +97,19 @@ describe("syncLessonsToGoogleCalendar", () => {
});
});
it("does not delete events during incremental sync", async () => {
const result = await syncLessonsToGoogleCalendar(
{ origin: ORIGIN, lessons: [baseLesson], mode: "incremental" },
getAccessToken,
);
expect(deleteGoogleCalendarEvent).not.toHaveBeenCalled();
expect(result).toMatchObject({
success: true,
deleted: 0,
});
});
it("reports progress while syncing", async () => {
const progress: Array<{ phase: string; current: number; total: number }> = [];
await syncLessonsToGoogleCalendar(