test: use public plugin sdk test fixtures

This commit is contained in:
Peter Steinberger 2026-04-28 03:52:12 +01:00
parent 518d568de5
commit a812b8f919
No known key found for this signature in database
13 changed files with 10 additions and 24 deletions

View file

@ -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";

View file

@ -1 +0,0 @@
export { importFreshModule } from "../../src/plugin-sdk/test-helpers/import-fresh.js";

View file

@ -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", () => {

View file

@ -1 +0,0 @@
export { normalizeTranscriptForMatch } from "../../src/plugin-sdk/test-helpers/stt-live-audio.js";

View file

@ -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[] = [];

View file

@ -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[] = [];

View file

@ -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 `<item><title>${shortVersion}</title><sparkle:shortVersionString>${shortVersion}</sparkle:shortVersionString><sparkle:version>${sparkleVersion}</sparkle:version></item>`;

View file

@ -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");

View file

@ -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";

View file

@ -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";

View file

@ -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";

View file

@ -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", () => {

View file

@ -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();