Skip to content

Commit

Permalink
test: Integration tests for handleNewBooking (calcom#11044)
Browse files Browse the repository at this point in the history
Co-authored-by: Shivam Kalra <[email protected]>
Co-authored-by: Joe Au-Yeung <[email protected]>
  • Loading branch information
3 people authored Sep 6, 2023
1 parent d7d7bcd commit f9eb335
Show file tree
Hide file tree
Showing 17 changed files with 1,526 additions and 441 deletions.
20 changes: 20 additions & 0 deletions apps/web/test/fixtures/fixtures.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// my-test.ts
import { test as base } from "vitest";

import { getTestEmails } from "@calcom/lib/testEmails";

export interface Fixtures {
emails: ReturnType<typeof getEmailsFixture>;
}

export const test = base.extend<Fixtures>({
emails: async ({}, use) => {
await use(getEmailsFixture());
},
});

function getEmailsFixture() {
return {
get: getTestEmails,
};
}
Loading

0 comments on commit f9eb335

Please sign in to comment.