mirror of
https://github.com/hanzoai/calendar.git
synced 2026-09-24 22:42:24 +00:00
* add tests for workflow sms * fix type error * improvements * add tests for team workflow * rename test * add emailsToReceive everywhere * fix type errors * code clean up * fix fresh-booking.test.ts * add destination email to emailsToReceive * remove unused webhooks --------- Co-authored-by: CarinaWolli <[email protected]> Co-authored-by: Udit Takkar <[email protected]> Co-authored-by: Hariom <[email protected]>
32 lines
604 B
TypeScript
32 lines
604 B
TypeScript
// my-test.ts
|
|
import { test as base } from "vitest";
|
|
|
|
import { getTestEmails } from "@calcom/lib/testEmails";
|
|
import { getTestSMS } from "@calcom/lib/testSMS";
|
|
|
|
export interface Fixtures {
|
|
emails: ReturnType<typeof getEmailsFixture>;
|
|
sms: ReturnType<typeof getSMSFixture>;
|
|
}
|
|
|
|
export const test = base.extend<Fixtures>({
|
|
emails: async ({}, use) => {
|
|
await use(getEmailsFixture());
|
|
},
|
|
sms: async ({}, use) => {
|
|
await use(getSMSFixture());
|
|
},
|
|
});
|
|
|
|
function getEmailsFixture() {
|
|
return {
|
|
get: getTestEmails,
|
|
};
|
|
}
|
|
|
|
function getSMSFixture() {
|
|
return {
|
|
get: getTestSMS,
|
|
};
|
|
}
|