mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 07:40:44 +00:00
test: type runtime auth overlay mock
This commit is contained in:
@@ -4,7 +4,11 @@ import path from "node:path";
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import { AUTH_STORE_VERSION } from "./auth-profiles/constants.js";
|
||||
|
||||
const resolveExternalAuthProfilesWithPluginsMock = vi.fn(() => []);
|
||||
type ExternalAuthProfiles = ReturnType<
|
||||
typeof import("../plugins/provider-runtime.js").resolveExternalAuthProfilesWithPlugins
|
||||
>;
|
||||
|
||||
const resolveExternalAuthProfilesWithPluginsMock = vi.fn<() => ExternalAuthProfiles>(() => []);
|
||||
|
||||
vi.mock("../plugins/provider-runtime.js", () => ({
|
||||
resolveExternalAuthProfilesWithPlugins: resolveExternalAuthProfilesWithPluginsMock,
|
||||
|
||||
Reference in New Issue
Block a user