test: restore plugin contract testkit imports

This commit is contained in:
Peter Steinberger
2026-04-06 18:08:26 +01:00
parent 48fea1021a
commit f88b6ffb48
5 changed files with 11 additions and 5 deletions

View File

@@ -1,4 +1,5 @@
import { beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
import { uniqueSortedStrings } from "../../../test/helpers/plugins/contracts-testkit.js";
import { withBundledPluginAllowlistCompat } from "../bundled-compat.js";
import {
loadPluginManifestRegistry,
@@ -7,7 +8,6 @@ import {
import { __testing as providerTesting } from "../providers.js";
import { resolvePluginWebSearchProviders } from "../web-search-providers.runtime.js";
import { providerContractCompatPluginIds } from "./registry.js";
import { uniqueSortedStrings } from "./testkit.js";
function resolveBundledManifestProviderPluginIds() {
return uniqueSortedStrings(

View File

@@ -1,6 +1,9 @@
import { describe, expect, it } from "vitest";
import {
createPluginRegistryFixture,
registerVirtualTestPlugin,
} from "../../../test/helpers/plugins/contracts-testkit.js";
import { getRegisteredMemoryEmbeddingProvider } from "../memory-embedding-providers.js";
import { createPluginRegistryFixture, registerVirtualTestPlugin } from "./testkit.js";
describe("memory embedding provider registration", () => {
it("rejects non-memory plugins that did not declare the capability contract", () => {

View File

@@ -1,4 +1,5 @@
import { describe, expect, it } from "vitest";
import { uniqueSortedStrings } from "../../../test/helpers/plugins/contracts-testkit.js";
import {
loadPluginManifestRegistry,
resolveManifestContractPluginIds,
@@ -16,7 +17,6 @@ import {
speechProviderContractRegistry,
webFetchProviderContractRegistry,
} from "./registry.js";
import { uniqueSortedStrings } from "./testkit.js";
const REGISTRY_CONTRACT_TIMEOUT_MS = 300_000;

View File

@@ -1,5 +1,5 @@
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import { assertNoImportTimeSideEffects } from "./testkit.js";
import { assertNoImportTimeSideEffects } from "../../../test/helpers/plugins/contracts-testkit.js";
const listChannelPlugins = vi.hoisted(() =>
vi.fn(() => [

View File

@@ -1,6 +1,9 @@
import { describe, expect, it } from "vitest";
import {
createPluginRegistryFixture,
registerVirtualTestPlugin,
} from "../../../test/helpers/plugins/contracts-testkit.js";
import { buildAllPluginInspectReports } from "../status.js";
import { createPluginRegistryFixture, registerVirtualTestPlugin } from "./testkit.js";
describe("plugin shape compatibility matrix", () => {
it("keeps legacy hook-only, plain capability, and hybrid capability shapes explicit", () => {