Tests: align plugin test imports with local barrels

This commit is contained in:
Vincent Koc 2026-03-17 23:22:58 -07:00
parent 100d7b0227
commit b333eb137b
3 changed files with 3 additions and 3 deletions

View File

@ -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 {

View File

@ -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: {

View File

@ -27,7 +27,7 @@ async function readRequestBodyWithLimitForTest(req: IncomingMessage): Promise<st
});
}
vi.mock("openclaw/plugin-sdk/synology-chat", () => ({
vi.mock("../api.js", () => ({
DEFAULT_ACCOUNT_ID: "default",
setAccountEnabledInConfigSection: vi.fn((_opts: unknown) => ({})),
registerPluginHttpRoute: registerPluginHttpRouteMock,