fix: unit test flake (#25780)
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
/**
|
||||
* @vitest-environment jsdom
|
||||
*/
|
||||
import { renderHook, waitFor } from "@testing-library/react";
|
||||
import { describe, it, expect, vi, beforeEach } from "vitest";
|
||||
import { cleanup, renderHook, waitFor } from "@testing-library/react";
|
||||
import { describe, it, expect, vi, beforeEach, afterEach } from "vitest";
|
||||
|
||||
import type { BookerEvent } from "@calcom/features/bookings/types";
|
||||
|
||||
@@ -49,6 +49,10 @@ describe("useInitialFormValues - Autofill Disable Feature", () => {
|
||||
vi.clearAllMocks();
|
||||
});
|
||||
|
||||
afterEach(() => {
|
||||
cleanup();
|
||||
});
|
||||
|
||||
describe("when organization has NOT disabled autofill", () => {
|
||||
it("should use URL parameters to prefill form fields", async () => {
|
||||
const eventType: Pick<BookerEvent, "bookingFields" | "team" | "owner"> = {
|
||||
|
||||
Reference in New Issue
Block a user