chore: ensure default calendars with trigger.dev apiv2 (#27058)

* chore: ensure default calendars with trigger.dev apiv2

* test: add unit and e2e tests for CalendarsTasker integration

- Add unit tests for CalendarsTasker.dispatch when enableAsyncTasker is true
- Add e2e test to verify ensureDefaultCalendarsForUser is called when creating membership
- Mock CalendarsTasker and ConfigService in unit tests
- Test both async (Trigger.dev) and sync (Bull queue) paths
- Fix missing return types on helper functions in e2e tests
- Add *.spec.ts to biome test file exceptions for noExcessiveLinesPerFunction rule

Co-Authored-By: [email protected] <[email protected]>

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
authored and GitHub committed 2026-01-21 16:03:30 +02:00
1 parent f44ee33c6c
commit f00f80ed26
11 files changed
+462 -289

No files matched your search

+2 -1
View File
@@ -32,7 +32,8 @@
"@calcom/platform-libraries/bookings": ["../../../packages/platform/libraries/bookings.ts"],
"@calcom/platform-libraries/private-links": ["../../../packages/platform/libraries/private-links.ts"],
"@calcom/platform-libraries/organizations": ["../../../packages/platform/libraries/organizations.ts"],
"@calcom/platform-libraries/errors": ["../../../packages/platform/libraries/errors.ts"]
"@calcom/platform-libraries/errors": ["../../../packages/platform/libraries/errors.ts"],
"@calcom/platform-libraries/calendars": ["../../../packages/platform/libraries/calendars.ts"]
},
"incremental": true,
"skipLibCheck": true,