import { describe, expect, it, vi } from "vitest"; import { createClient, isPluginSupported, SUPPORTED_PLUGINS, } from "./registry.js"; import { SnowflakeCortexClientImpl } from "./snowflakecortex/index.js"; describe("integration registry", () => { it("supports snowflakecortex plugin id", () => { expect(isPluginSupported("snowflakecortex")).toBe(true); expect(isPluginSupported(SUPPORTED_PLUGINS.snowflakecortex)).toBe(true); }); it("creates a SnowflakeCortex client", () => { const executeQuery = vi.fn(); const client = createClient({ config: { id: "snowflake-cortex-id", name: "Snowflake Cortex", pluginId: "snowflakecortex", configuration: {}, }, executeQuery, }); expect(client).toBeInstanceOf(SnowflakeCortexClientImpl); }); });