mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-31 15:48:32 +00:00
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:
committed by
GitHub
parent
ff0990d800
commit
c86667c5cf
@@ -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(() => ({
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -46,6 +46,7 @@
|
||||
"reply-reference",
|
||||
"reply-chunking",
|
||||
"reply-payload",
|
||||
"reply-payload-testing",
|
||||
"agent-media-payload",
|
||||
"inbound-reply-dispatch",
|
||||
"inbound-envelope",
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
"qa-channel-protocol",
|
||||
"qa-lab",
|
||||
"qa-runtime",
|
||||
"reply-payload-testing",
|
||||
"ssrf-runtime-internal",
|
||||
"test-env",
|
||||
"test-fixtures",
|
||||
|
||||
1
src/plugin-sdk/reply-payload-testing.ts
Normal file
1
src/plugin-sdk/reply-payload-testing.ts
Normal file
@@ -0,0 +1 @@
|
||||
export { setReplyPayloadMetadata } from "../auto-reply/reply-payload.js";
|
||||
Reference in New Issue
Block a user