From a0b9a02e2ef1a6f5480621ccb799a8b35a10ce48 Mon Sep 17 00:00:00 2001 From: Frank Yang Date: Tue, 10 Mar 2026 12:10:33 +0800 Subject: [PATCH] test: update oauth mock signature --- src/agents/pi-tools.workspace-only-false.test.ts | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/agents/pi-tools.workspace-only-false.test.ts b/src/agents/pi-tools.workspace-only-false.test.ts index 0b756557739..fb18260db09 100644 --- a/src/agents/pi-tools.workspace-only-false.test.ts +++ b/src/agents/pi-tools.workspace-only-false.test.ts @@ -3,14 +3,10 @@ import os from "node:os"; import path from "node:path"; import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; -vi.mock( - "@mariozechner/pi-ai/oauth", - () => ({ - getOAuthApiKey: () => undefined, - getOAuthProviders: () => [], - }), - { virtual: true }, -); +vi.mock("@mariozechner/pi-ai/oauth", () => ({ + getOAuthApiKey: () => undefined, + getOAuthProviders: () => [], +})); import { createOpenClawCodingTools } from "./pi-tools.js";