From 896b82f4304cb898af8f29ee401198d0d92ba61a Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Tue, 28 Apr 2026 03:45:48 +0100 Subject: [PATCH] test: align sdk helper imports --- .../check-no-extension-test-core-imports.ts | 22 +++++++++---------- test/cli-json-stdout.e2e.test.ts | 2 +- test/official-channel-catalog.test.ts | 1 + 3 files changed, 13 insertions(+), 12 deletions(-) diff --git a/scripts/check-no-extension-test-core-imports.ts b/scripts/check-no-extension-test-core-imports.ts index c894063f4c3..dcf6aecda5c 100644 --- a/scripts/check-no-extension-test-core-imports.ts +++ b/scripts/check-no-extension-test-core-imports.ts @@ -140,17 +140,17 @@ const RETIRED_EXTENSION_TEST_HELPER_BRIDGE_FILES = [ "test/helpers/media-generation/dashscope-video-provider.ts", "test/helpers/media-generation/provider-capability-assertions.ts", "test/helpers/media-generation/provider-http-mocks.ts", - "test/helpers/bundled-channel-entry.ts", - "test/helpers/bundled-plugin-paths.ts", - "test/helpers/envelope-timestamp.ts", - "test/helpers/http-test-server.ts", - "test/helpers/import-fresh.ts", - "test/helpers/mock-incoming-request.ts", - "test/helpers/node-builtin-mocks.ts", - "test/helpers/pairing-reply.ts", - "test/helpers/provider-replay-policy.ts", - "test/helpers/stt-live-audio.ts", - "test/helpers/temp-home.ts", + "src/plugin-sdk/test-helpers/bundled-channel-entry.ts", + "src/plugin-sdk/test-helpers/bundled-plugin-paths.ts", + "src/plugin-sdk/test-helpers/envelope-timestamp.ts", + "src/plugin-sdk/test-helpers/http-test-server.ts", + "src/plugin-sdk/test-helpers/import-fresh.ts", + "src/plugin-sdk/test-helpers/mock-incoming-request.ts", + "src/plugin-sdk/test-helpers/node-builtin-mocks.ts", + "src/plugin-sdk/test-helpers/pairing-reply.ts", + "src/plugin-sdk/test-helpers/provider-replay-policy.ts", + "src/plugin-sdk/test-helpers/stt-live-audio.ts", + "src/plugin-sdk/test-helpers/temp-home.ts", "test/helpers/agents/auth-profile-runtime-contract.ts", "test/helpers/agents/delivery-no-reply-runtime-contract.ts", "test/helpers/agents/openclaw-owned-tool-runtime-contract.ts", diff --git a/test/cli-json-stdout.e2e.test.ts b/test/cli-json-stdout.e2e.test.ts index b3915dbb1af..5a1d8a9d239 100644 --- a/test/cli-json-stdout.e2e.test.ts +++ b/test/cli-json-stdout.e2e.test.ts @@ -2,7 +2,7 @@ import { spawnSync } from "node:child_process"; import fs from "node:fs/promises"; import path from "node:path"; import { describe, expect, it } from "vitest"; -import { withTempHome } from "./helpers/temp-home.ts"; +import { withTempHome } from "openclaw/plugin-sdk/test-env"; describe("cli json stdout contract", () => { it("keeps `update status --json` stdout parseable even with legacy doctor preflight inputs", async () => { diff --git a/test/official-channel-catalog.test.ts b/test/official-channel-catalog.test.ts index 4c0808fa385..7e050914ccd 100644 --- a/test/official-channel-catalog.test.ts +++ b/test/official-channel-catalog.test.ts @@ -7,6 +7,7 @@ import { OFFICIAL_CHANNEL_CATALOG_RELATIVE_PATH, writeOfficialChannelCatalog, } from "../scripts/write-official-channel-catalog.mjs"; +import { bundledPluginRoot } from "openclaw/plugin-sdk/test-fixtures"; import { describePluginInstallSource } from "../src/plugins/install-source-info.js"; import { cleanupTempDirs, makeTempRepoRoot, writeJsonFile } from "./helpers/temp-repo.js";