From a6d39b068bc294735ac2f5edade46f0cb14a2ea9 Mon Sep 17 00:00:00 2001 From: Bereket Engida Date: Thu, 17 Oct 2024 08:24:10 +0300 Subject: [PATCH] chore: fix test --- packages/better-auth/src/init.test.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/better-auth/src/init.test.ts b/packages/better-auth/src/init.test.ts index de1dd61aa5..9b4a4580d8 100644 --- a/packages/better-auth/src/init.test.ts +++ b/packages/better-auth/src/init.test.ts @@ -22,6 +22,7 @@ describe("init", async () => { }); expect(res.options.baseURL).toBe("http://localhost:3000"); expect(res.baseURL).toBe("http://localhost:3000/api/auth"); + vi.restoreAllMocks(); }); it("should respect base path", async () => { @@ -31,6 +32,7 @@ describe("init", async () => { basePath: "/custom-path", }); expect(res.baseURL).toBe("http://localhost:3000/custom-path"); + vi.restoreAllMocks(); }); it("should work with base path", async () => {