Skip to content

Commit f9eb335

Browse files
hariombalharashivamklrjoeauyeung
authored
test: Integration tests for handleNewBooking (calcom#11044)
Co-authored-by: Shivam Kalra <[email protected]> Co-authored-by: Joe Au-Yeung <[email protected]>
1 parent d7d7bcd commit f9eb335

17 files changed

+1526
-441
lines changed

apps/web/test/fixtures/fixtures.ts

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// my-test.ts
2+
import { test as base } from "vitest";
3+
4+
import { getTestEmails } from "@calcom/lib/testEmails";
5+
6+
export interface Fixtures {
7+
emails: ReturnType<typeof getEmailsFixture>;
8+
}
9+
10+
export const test = base.extend<Fixtures>({
11+
emails: async ({}, use) => {
12+
await use(getEmailsFixture());
13+
},
14+
});
15+
16+
function getEmailsFixture() {
17+
return {
18+
get: getTestEmails,
19+
};
20+
}

0 commit comments

Comments
 (0)