Tests: align plugin test imports with local barrels
This commit is contained in:
parent
100d7b0227
commit
b333eb137b
@ -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 {
|
||||
|
||||
@ -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: {
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user