diff --git a/test/helpers/bundled-plugin-paths.ts b/test/helpers/bundled-plugin-paths.ts deleted file mode 100644 index a9918cd4db1..00000000000 --- a/test/helpers/bundled-plugin-paths.ts +++ /dev/null @@ -1,12 +0,0 @@ -export { - BUNDLED_PLUGIN_E2E_TEST_GLOB, - BUNDLED_PLUGIN_LIVE_TEST_GLOB, - BUNDLED_PLUGIN_PATH_PREFIX, - BUNDLED_PLUGIN_ROOT_DIR, - BUNDLED_PLUGIN_TEST_GLOB, - bundledDistPluginFile, - bundledDistPluginRoot, - bundledPluginCallsite, - bundledPluginFile, - bundledPluginRoot, -} from "../../scripts/lib/bundled-plugin-paths.mjs"; diff --git a/test/helpers/import-fresh.ts b/test/helpers/import-fresh.ts deleted file mode 100644 index c8d7f8164c1..00000000000 --- a/test/helpers/import-fresh.ts +++ /dev/null @@ -1 +0,0 @@ -export { importFreshModule } from "../../src/plugin-sdk/test-helpers/import-fresh.js"; diff --git a/test/helpers/stt-live-audio.test.ts b/test/helpers/stt-live-audio.test.ts index 5c7484711fd..bbefe3b5c4f 100644 --- a/test/helpers/stt-live-audio.test.ts +++ b/test/helpers/stt-live-audio.test.ts @@ -1,5 +1,5 @@ +import { normalizeTranscriptForMatch } from "openclaw/plugin-sdk/provider-test-contracts"; import { describe, expect, it } from "vitest"; -import { normalizeTranscriptForMatch } from "./stt-live-audio.js"; describe("normalizeTranscriptForMatch", () => { it("normalizes punctuation and common OpenClaw live transcription variants", () => { diff --git a/test/helpers/stt-live-audio.ts b/test/helpers/stt-live-audio.ts deleted file mode 100644 index 51c6913e84b..00000000000 --- a/test/helpers/stt-live-audio.ts +++ /dev/null @@ -1 +0,0 @@ -export { normalizeTranscriptForMatch } from "../../src/plugin-sdk/test-helpers/stt-live-audio.js"; diff --git a/test/official-channel-catalog.test.ts b/test/official-channel-catalog.test.ts index 961a6bcae02..4c0808fa385 100644 --- a/test/official-channel-catalog.test.ts +++ b/test/official-channel-catalog.test.ts @@ -1,5 +1,6 @@ import fs from "node:fs"; import path from "node:path"; +import { bundledPluginRoot } from "openclaw/plugin-sdk/test-fixtures"; import { afterEach, describe, expect, it } from "vitest"; import { buildOfficialChannelCatalog, @@ -7,7 +8,6 @@ import { writeOfficialChannelCatalog, } from "../scripts/write-official-channel-catalog.mjs"; import { describePluginInstallSource } from "../src/plugins/install-source-info.js"; -import { bundledPluginRoot } from "./helpers/bundled-plugin-paths.js"; import { cleanupTempDirs, makeTempRepoRoot, writeJsonFile } from "./helpers/temp-repo.js"; const tempDirs: string[] = []; diff --git a/test/plugin-npm-release.test.ts b/test/plugin-npm-release.test.ts index d12829abd9f..baa24bd9913 100644 --- a/test/plugin-npm-release.test.ts +++ b/test/plugin-npm-release.test.ts @@ -1,5 +1,6 @@ import { mkdirSync } from "node:fs"; import { join } from "node:path"; +import { bundledPluginFile, bundledPluginRoot } from "openclaw/plugin-sdk/test-fixtures"; import { afterEach, describe, expect, it } from "vitest"; import { collectPublishablePluginPackages, @@ -12,7 +13,6 @@ import { resolveSelectedPublishablePluginPackages, type PublishablePluginPackage, } from "../scripts/lib/plugin-npm-release.ts"; -import { bundledPluginFile, bundledPluginRoot } from "./helpers/bundled-plugin-paths.js"; import { cleanupTempDirs, makeTempRepoRoot, writeJsonFile } from "./helpers/temp-repo.js"; const tempDirs: string[] = []; diff --git a/test/release-check.test.ts b/test/release-check.test.ts index c94fd22fabc..1d79f9de443 100644 --- a/test/release-check.test.ts +++ b/test/release-check.test.ts @@ -1,6 +1,7 @@ import { mkdtempSync, mkdirSync, rmSync, symlinkSync, writeFileSync } from "node:fs"; import { tmpdir } from "node:os"; import { dirname, join } from "node:path"; +import { bundledDistPluginFile, bundledPluginFile } from "openclaw/plugin-sdk/test-fixtures"; import { describe, expect, it } from "vitest"; import { listBundledPluginPackArtifacts } from "../scripts/lib/bundled-plugin-build-entries.mjs"; import { listPluginSdkDistArtifacts } from "../scripts/lib/plugin-sdk-entries.mjs"; @@ -24,7 +25,6 @@ import { resolveMissingPackBuildHint, } from "../scripts/release-check.ts"; import { PACKAGE_DIST_INVENTORY_RELATIVE_PATH } from "../src/infra/package-dist-inventory.ts"; -import { bundledDistPluginFile, bundledPluginFile } from "./helpers/bundled-plugin-paths.js"; function makeItem(shortVersion: string, sparkleVersion: string): string { return `${shortVersion}${shortVersion}${sparkleVersion}`; diff --git a/test/scripts/test-extension.test.ts b/test/scripts/test-extension.test.ts index c91f9036f63..c01e4cc36f0 100644 --- a/test/scripts/test-extension.test.ts +++ b/test/scripts/test-extension.test.ts @@ -1,5 +1,6 @@ import { execFileSync } from "node:child_process"; import path from "node:path"; +import { bundledPluginFile, bundledPluginRoot } from "openclaw/plugin-sdk/test-fixtures"; import { describe, expect, it, vi } from "vitest"; import { detectChangedExtensionIds, @@ -16,7 +17,6 @@ import { resolveExtensionBatchParallelism, runExtensionBatchPlan, } from "../../scripts/test-extension-batch.mjs"; -import { bundledPluginFile, bundledPluginRoot } from "../helpers/bundled-plugin-paths.js"; const scriptPath = path.join(process.cwd(), "scripts", "test-extension.mjs"); diff --git a/test/test-env.test.ts b/test/test-env.test.ts index 62c7896ac64..4b462096e8e 100644 --- a/test/test-env.test.ts +++ b/test/test-env.test.ts @@ -1,7 +1,7 @@ import fs from "node:fs"; import path from "node:path"; +import { importFreshModule } from "openclaw/plugin-sdk/test-fixtures"; import { afterEach, describe, expect, it, vi } from "vitest"; -import { importFreshModule } from "./helpers/import-fresh.ts"; import { cleanupTempDirs, makeTempDir } from "./helpers/temp-dir.js"; import { installTestEnv } from "./test-env.js"; diff --git a/test/vitest-extensions-config.test.ts b/test/vitest-extensions-config.test.ts index 37556a50101..c981df968c5 100644 --- a/test/vitest-extensions-config.test.ts +++ b/test/vitest-extensions-config.test.ts @@ -1,5 +1,5 @@ +import { bundledPluginFile } from "openclaw/plugin-sdk/test-fixtures"; import { afterEach, describe, expect, it } from "vitest"; -import { bundledPluginFile } from "./helpers/bundled-plugin-paths.js"; import { createPatternFileHelper } from "./helpers/pattern-file.js"; import { loadIncludePatternsFromEnv } from "./vitest/vitest.extensions.config.ts"; diff --git a/test/vitest-scoped-config.test.ts b/test/vitest-scoped-config.test.ts index f3c9d65f637..936fa2262c5 100644 --- a/test/vitest-scoped-config.test.ts +++ b/test/vitest-scoped-config.test.ts @@ -1,8 +1,8 @@ import fs from "node:fs"; import os from "node:os"; import path from "node:path"; +import { BUNDLED_PLUGIN_TEST_GLOB, bundledPluginFile } from "openclaw/plugin-sdk/test-fixtures"; import { describe, expect, it } from "vitest"; -import { BUNDLED_PLUGIN_TEST_GLOB, bundledPluginFile } from "./helpers/bundled-plugin-paths.js"; import { cleanupTempDirs, makeTempDir } from "./helpers/temp-dir.js"; import { normalizeConfigPath, normalizeConfigPaths } from "./helpers/vitest-config-paths.js"; import { createAcpVitestConfig } from "./vitest/vitest.acp.config.ts"; diff --git a/test/vitest-unit-paths.test.ts b/test/vitest-unit-paths.test.ts index d09874eee53..9d200fb3d22 100644 --- a/test/vitest-unit-paths.test.ts +++ b/test/vitest-unit-paths.test.ts @@ -1,5 +1,5 @@ +import { bundledPluginFile } from "openclaw/plugin-sdk/test-fixtures"; import { describe, expect, it } from "vitest"; -import { bundledPluginFile } from "./helpers/bundled-plugin-paths.js"; import { isUnitConfigTestFile } from "./vitest/vitest.unit-paths.mjs"; describe("isUnitConfigTestFile", () => { diff --git a/test/web-provider-boundary.test.ts b/test/web-provider-boundary.test.ts index e466a9f4ceb..6133b12bcfb 100644 --- a/test/web-provider-boundary.test.ts +++ b/test/web-provider-boundary.test.ts @@ -1,3 +1,4 @@ +import { BUNDLED_PLUGIN_PATH_PREFIX } from "openclaw/plugin-sdk/test-fixtures"; import { describe, expect, it } from "vitest"; import { collectWebFetchProviderBoundaryViolations, @@ -7,7 +8,6 @@ import { collectWebSearchProviderBoundaryInventory, main as webSearchMain, } from "../scripts/check-web-search-provider-boundaries.mjs"; -import { BUNDLED_PLUGIN_PATH_PREFIX } from "./helpers/bundled-plugin-paths.js"; import { createCapturedIo } from "./helpers/captured-io.js"; const webFetchViolationsPromise = collectWebFetchProviderBoundaryViolations();