test: fix latest fast-lane boundaries

This commit is contained in:
Peter Steinberger
2026-04-10 09:53:15 +01:00
parent 0728ac73c2
commit ec5ef68b0c
3 changed files with 8 additions and 6 deletions

View File

@@ -16,6 +16,7 @@ describe("live vitest config", () => {
it("includes live test globs and runtime setup", () => {
expect(liveConfig.test?.include).toEqual([
"src/**/*.live.test.ts",
"test/**/*.live.test.ts",
BUNDLED_PLUGIN_LIVE_TEST_GLOB,
]);
expect(liveConfig.test?.setupFiles).toContain("test/setup-openclaw-runtime.ts");

View File

@@ -60,7 +60,7 @@ const RUNTIME_API_EXPORT_GUARDS: Record<string, readonly string[]> = {
'export { sendMessageIMessage } from "./src/send.js";',
'export { setIMessageRuntime } from "./src/runtime.js";',
'export { chunkTextForOutbound } from "./src/channel-api.js";',
'export type { IMessageAccountConfig } from "./src/account-types.js";',
'export type IMessageAccountConfig = Omit< NonNullable<NonNullable<RuntimeApiOpenClawConfig["channels"]>["imessage"]>, "accounts" | "defaultAccount" >;',
],
[bundledPluginFile("googlechat", "runtime-api.ts")]: [
'export { DEFAULT_ACCOUNT_ID } from "openclaw/plugin-sdk/account-id";',

View File

@@ -1,5 +1,6 @@
export { resolveWhatsAppRuntimeGroupPolicy } from "../../../extensions/whatsapp/src/runtime-group-policy.js";
export {
evaluateZaloGroupAccess,
resolveZaloRuntimeGroupPolicy,
} from "../../../extensions/zalo/src/group-access.js";
import { resolveOpenProviderRuntimeGroupPolicy } from "../../../src/config/runtime-group-policy.js";
const resolveWhatsAppRuntimeGroupPolicy = resolveOpenProviderRuntimeGroupPolicy;
const resolveZaloRuntimeGroupPolicy = resolveOpenProviderRuntimeGroupPolicy;
export { resolveWhatsAppRuntimeGroupPolicy, resolveZaloRuntimeGroupPolicy };