From dd3f10c155260a154b1de07cd92dc88c19f825c8 Mon Sep 17 00:00:00 2001 From: Thomas Date: Thu, 26 Dec 2024 15:30:26 +0100 Subject: [PATCH] Add Mock for Firebase Config --- tests/setup.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/setup.ts b/tests/setup.ts index 5bf8c89..9d00430 100644 --- a/tests/setup.ts +++ b/tests/setup.ts @@ -1,9 +1,11 @@ import * as matchers from "@testing-library/jest-dom/matchers"; import { cleanup } from "@testing-library/react"; -import { afterEach, expect } from "vitest"; +import { afterEach, expect, vi } from "vitest"; expect.extend(matchers); +vi.mock("@/config/firebase"); + afterEach(() => { cleanup(); });