test(discord): use reply payload SDK test helper (#87454)

* test(discord): use reply payload SDK test helper

* build(plugin-sdk): exclude reply payload test helper
This commit is contained in:
Peter Steinberger
2026-05-28 00:57:22 +01:00
committed by GitHub
parent ff0990d800
commit c86667c5cf
5 changed files with 6 additions and 1 deletions

View File

@@ -5,9 +5,9 @@ import {
type ChannelBotLoopProtectionFacts,
} from "openclaw/plugin-sdk/channel-inbound";
import type { ReplyPayload } from "openclaw/plugin-sdk/reply-dispatch-runtime";
import { setReplyPayloadMetadata } from "openclaw/plugin-sdk/reply-payload-testing";
import * as runtimeEnvModule from "openclaw/plugin-sdk/runtime-env";
import { beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
import { setReplyPayloadMetadata } from "../../../../src/auto-reply/reply-payload.js";
import type { DiscordMessagePreflightContext } from "./message-handler.preflight.js";
const sendMocks = vi.hoisted(() => ({

View File

@@ -51,6 +51,8 @@
"!dist/plugin-sdk/provider-http-test-mocks.d.ts",
"!dist/plugin-sdk/provider-test-contracts.js",
"!dist/plugin-sdk/provider-test-contracts.d.ts",
"!dist/plugin-sdk/reply-payload-testing.js",
"!dist/plugin-sdk/reply-payload-testing.d.ts",
"!dist/plugin-sdk/test-env.js",
"!dist/plugin-sdk/test-env.d.ts",
"!dist/plugin-sdk/test-fixtures.js",

View File

@@ -46,6 +46,7 @@
"reply-reference",
"reply-chunking",
"reply-payload",
"reply-payload-testing",
"agent-media-payload",
"inbound-reply-dispatch",
"inbound-envelope",

View File

@@ -13,6 +13,7 @@
"qa-channel-protocol",
"qa-lab",
"qa-runtime",
"reply-payload-testing",
"ssrf-runtime-internal",
"test-env",
"test-fixtures",

View File

@@ -0,0 +1 @@
export { setReplyPayloadMetadata } from "../auto-reply/reply-payload.js";