mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 10:10:45 +00:00
test: narrow provider discovery test imports
This commit is contained in:
@@ -820,9 +820,8 @@ describe("loginGeminiCliOAuth", () => {
|
||||
);
|
||||
|
||||
const { requests } = installGeminiOAuthFetchMock(() => undefined);
|
||||
|
||||
const { loginGeminiCliOAuth } = await import("./oauth.js");
|
||||
const { result } = await runRemoteLoginWithCapturedAuthUrl(loginGeminiCliOAuth);
|
||||
const { exchangeCodeForTokens } = await import("./oauth.token.js");
|
||||
const result = await exchangeCodeForTokens("oauth-code", "pkce-verifier");
|
||||
|
||||
expect(result.projectId).toBeUndefined();
|
||||
expect(requests.map(({ url }) => url)).toEqual([TOKEN_URL, USERINFO_URL]);
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import type { AuthProfileStore } from "../../../src/agents/auth-profiles/types.js";
|
||||
import type { OpenClawConfig } from "../../../src/config/config.js";
|
||||
import { registerProviders, requireProvider } from "./contracts-testkit.js";
|
||||
import {
|
||||
registerProviderPlugins as registerProviders,
|
||||
requireRegisteredProvider as requireProvider,
|
||||
} from "../../../src/test-utils/plugin-registration.js";
|
||||
|
||||
const resolveCopilotApiTokenMock = vi.hoisted(() => vi.fn());
|
||||
const buildVllmProviderMock = vi.hoisted(() => vi.fn());
|
||||
|
||||
Reference in New Issue
Block a user