import "@testing-library/jest-dom/vitest"; import { vi } from "vitest"; vi.mock("@tauri-apps/api/event", () => ({ listen: vi.fn(async () => () => undefined), })); import { cleanup } from "@testing-library/react"; import { afterEach } from "vitest"; afterEach(() => { cleanup(); });