fix(ci): route extension test helpers through sdk seams

This commit is contained in:
Peter Steinberger
2026-04-03 13:58:21 +01:00
parent 35d890b5ef
commit a884ad3cf2
4 changed files with 11 additions and 8 deletions

View File

@@ -1,6 +1,6 @@
type PathEnvKey = "PATH" | "Path" | "PATHEXT" | "Pathext";
export { createWindowsCmdShimFixture } from "../../../src/test-helpers/windows-cmd-shim.js";
export { createWindowsCmdShimFixture } from "openclaw/plugin-sdk/testing";
const PATH_ENV_KEYS = ["PATH", "Path", "PATHEXT", "Pathext"] as const;

View File

@@ -1 +1 @@
export { installCommonResolveTargetErrorCases } from "../../src/test-helpers/resolve-target-error-cases.js";
export { installCommonResolveTargetErrorCases } from "openclaw/plugin-sdk/testing";

View File

@@ -1 +1 @@
export { createWindowsCmdShimFixture } from "../../src/test-helpers/windows-cmd-shim.js";
export { createWindowsCmdShimFixture } from "openclaw/plugin-sdk/testing";

View File

@@ -1,11 +1,14 @@
import { resolveDefaultModelForAgent } from "openclaw/plugin-sdk/agent-runtime";
import type { OpenClawConfig } from "openclaw/plugin-sdk/config-runtime";
import {
createReplyDispatcher,
resetInboundDedupe,
type GetReplyOptions,
type MsgContext,
type ReplyPayload,
} from "openclaw/plugin-sdk/reply-runtime";
import type { MockFn } from "openclaw/plugin-sdk/testing";
import { beforeEach, vi } from "vitest";
import { resolveDefaultModelForAgent } from "../../../src/agents/model-selection.js";
import { resetInboundDedupe } from "../../../src/auto-reply/reply/inbound-dedupe.js";
import { createReplyDispatcher } from "../../../src/auto-reply/reply/reply-dispatcher.js";
import type { MsgContext } from "../../../src/auto-reply/templating.js";
import type { GetReplyOptions, ReplyPayload } from "../../../src/auto-reply/types.js";
import type { TelegramBotDeps } from "./bot-deps.js";
type AnyMock = ReturnType<typeof vi.fn>;