callumalpass_tasknotes/tests
callumalpass a47d4a3d0f feat: add comprehensive test coverage for calendar services
Add full test suites for GoogleCalendarService and MicrosoftCalendarService
covering all major functionality including CRUD operations, error handling,
rate limiting, pagination, and timezone handling.

BREAKING CHANGE: Updated CalendarProvider interface - createEvent now returns
ICSEvent instead of string ID, updateEvent returns ICSEvent instead of void.

Changes:
- Add GoogleCalendarService.test.ts with 30+ test cases
- Add MicrosoftCalendarService.test.ts with 35+ test cases
- Update GoogleCalendarService to return ICSEvent from create/update operations
- Update MicrosoftCalendarService to return ICSEvent from create/update operations
- Add test compatibility methods (getEvents, getCachedEvents, manualRefresh)
- Fix Microsoft Calendar delta sync to use proper /delta endpoint
- Fix Google Calendar to handle 410 Gone for already-deleted events
- Improve pagination handling in Microsoft Calendar listCalendars
- Remove debug console.log statements from both services
- Update OAuth setup documentation to explain Device Flow security model
- Document that client secrets are never bundled (Device Flow uses only client IDs)

Test coverage includes:
- List calendars with pagination
- Fetch events with incremental sync (syncToken/deltaLink)
- Create/update/delete events (timed and all-day)
- Rate limiting and retry logic with exponential backoff
- Error handling (network, API errors, token expiration)
- Timezone handling (UTC and local timezones)
- Base64-encoded calendar/event IDs
2025-10-21 21:47:42 +11:00
..
__mocks__ fix: ICS calendar timezone conversion for non-IANA timezones (#781, #841) 2025-10-06 22:26:15 +11:00
components test: add comprehensive test coverage for hierarchical subgroup functionality 2025-09-18 10:15:08 +00:00
helpers fix: recurring tasks with overdue due dates disappearing from agenda (#810) 2025-10-06 21:15:19 +11:00
integration fix: automatically sanitize forbidden characters in task titles 2025-09-08 01:15:26 +10:00
manual fix: all-day ICS events displaying on wrong day and appearing twice (#854, #695) 2025-10-07 07:20:48 +11:00
services feat: add comprehensive test coverage for calendar services 2025-10-21 21:47:42 +11:00
types test: add comprehensive test coverage for hierarchical subgroup functionality 2025-09-18 10:15:08 +00:00
unit fix: prevent project filters from affecting custom field suggestions (#908) 2025-10-12 13:42:28 +11:00
utils test: add tests for non-string values in frontmatter tags 2025-09-30 18:02:59 +10:00
coverage-report.md test: add comprehensive tests for Issue #160 off-by-one date bugs 2025-07-11 23:06:37 +10:00
test-setup.ts feat: add saved views button position setting 2025-08-15 22:50:30 +10:00