Files
openclaw/extensions/google/setup-api.test.ts
2026-04-30 00:13:12 +01:00

24 lines
802 B
TypeScript

import type { CliBackendPlugin } from "openclaw/plugin-sdk/cli-backend";
import type { ProviderPlugin } from "openclaw/plugin-sdk/provider-model-shared";
import { describe, expect, it } from "vitest";
import setupEntry from "./setup-api.js";
describe("google setup entry", () => {
it("registers setup runtime providers declared by the manifest", () => {
const providerIds: string[] = [];
const cliBackendIds: string[] = [];
setupEntry.register({
registerProvider(provider: ProviderPlugin) {
providerIds.push(provider.id);
},
registerCliBackend(backend: CliBackendPlugin) {
cliBackendIds.push(backend.id);
},
} as never);
expect(providerIds).toContain("google-vertex");
expect(cliBackendIds).toContain("google-gemini-cli");
});
});