From b333eb137ba58fc9c2825f0f2e86ef0626771477 Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Tue, 17 Mar 2026 23:22:58 -0700 Subject: [PATCH] Tests: align plugin test imports with local barrels --- extensions/mattermost/src/mattermost/reactions.test-helpers.ts | 2 +- extensions/msteams/src/test-runtime.ts | 2 +- extensions/synology-chat/src/channel.test-mocks.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/extensions/mattermost/src/mattermost/reactions.test-helpers.ts b/extensions/mattermost/src/mattermost/reactions.test-helpers.ts index 248b9355918..ef31652ea40 100644 --- a/extensions/mattermost/src/mattermost/reactions.test-helpers.ts +++ b/extensions/mattermost/src/mattermost/reactions.test-helpers.ts @@ -1,5 +1,5 @@ -import type { OpenClawConfig } from "openclaw/plugin-sdk/mattermost"; import { expect, vi } from "vitest"; +import type { OpenClawConfig } from "../../runtime-api.js"; export function createMattermostTestConfig(): OpenClawConfig { return { diff --git a/extensions/msteams/src/test-runtime.ts b/extensions/msteams/src/test-runtime.ts index 6232e28ba07..3d884fcf2ac 100644 --- a/extensions/msteams/src/test-runtime.ts +++ b/extensions/msteams/src/test-runtime.ts @@ -1,6 +1,6 @@ import os from "node:os"; import path from "node:path"; -import type { PluginRuntime } from "openclaw/plugin-sdk/msteams"; +import type { PluginRuntime } from "../runtime-api.js"; export const msteamsRuntimeStub = { state: { diff --git a/extensions/synology-chat/src/channel.test-mocks.ts b/extensions/synology-chat/src/channel.test-mocks.ts index 10ccca5f9d0..21859ba90e9 100644 --- a/extensions/synology-chat/src/channel.test-mocks.ts +++ b/extensions/synology-chat/src/channel.test-mocks.ts @@ -27,7 +27,7 @@ async function readRequestBodyWithLimitForTest(req: IncomingMessage): Promise ({ +vi.mock("../api.js", () => ({ DEFAULT_ACCOUNT_ID: "default", setAccountEnabledInConfigSection: vi.fn((_opts: unknown) => ({})), registerPluginHttpRoute: registerPluginHttpRouteMock,