mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 05:30:42 +00:00
test: lazy-load openai provider catalog contract
This commit is contained in:
@@ -4,7 +4,7 @@ import {
|
||||
expectCodexBuiltInSuppression,
|
||||
expectCodexMissingAuthHint,
|
||||
importProviderRuntimeCatalogModule,
|
||||
loadBundledPluginPublicSurfaceSync,
|
||||
loadBundledPluginPublicSurface,
|
||||
} from "../../../test/helpers/plugins/provider-catalog.js";
|
||||
import type { ProviderPlugin } from "../../../test/helpers/plugins/provider-catalog.js";
|
||||
import {
|
||||
@@ -41,7 +41,7 @@ vi.mock("../../../src/plugins/providers.runtime.js", () => ({
|
||||
export function describeOpenAIProviderCatalogContract() {
|
||||
const contractDepsPromise = (async () => {
|
||||
vi.resetModules();
|
||||
const openaiPlugin = loadBundledPluginPublicSurfaceSync<{
|
||||
const openaiPlugin = await loadBundledPluginPublicSurface<{
|
||||
default: Parameters<typeof registerProviderPlugin>[0]["plugin"];
|
||||
}>({
|
||||
pluginId: "openai",
|
||||
|
||||
@@ -4,7 +4,10 @@ export {
|
||||
expectCodexMissingAuthHint,
|
||||
} from "../../../src/plugins/provider-runtime.test-support.js";
|
||||
export type { ProviderPlugin } from "../../../src/plugins/types.js";
|
||||
export { loadBundledPluginPublicSurfaceSync } from "../../../src/test-utils/bundled-plugin-public-surface.js";
|
||||
export {
|
||||
loadBundledPluginPublicSurface,
|
||||
loadBundledPluginPublicSurfaceSync,
|
||||
} from "../../../src/test-utils/bundled-plugin-public-surface.js";
|
||||
|
||||
type ProviderRuntimeCatalogModule = Pick<
|
||||
typeof import("../../../src/plugins/provider-runtime.js"),
|
||||
|
||||
Reference in New Issue
Block a user