test: Integration tests for handleNewBooking (#11044)

Co-authored-by: Shivam Kalra <shivamkalra98@gmail.com>
Co-authored-by: Joe Au-Yeung <65426560+joeauyeung@users.noreply.github.com>
This commit is contained in:
authored and GitHub committed 2023-09-06 12:23:53 -07:00
1 parent d7d7bcd651
commit f9eb335d0b
17 files changed
+1526 -441

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
import { vi } from "vitest";
import createFetchMock from "vitest-fetch-mock";
const fetchMocker = createFetchMock(vi);
// sets globalThis.fetch and globalThis.fetchMock to our mocked version
fetchMocker.enableMocks();