mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-19 13:11:40 +00:00
fix(ci): repair discord interactive test seams
This commit is contained in:
@@ -153,7 +153,7 @@ describe("createDiscordNativeCommand option wiring", () => {
|
||||
});
|
||||
|
||||
it("keeps static choices for non-acp string action arguments", () => {
|
||||
const command = createNativeCommand("voice");
|
||||
const command = createNativeCommand("config");
|
||||
const action = requireOption(command, "action");
|
||||
const choices = readChoices(action);
|
||||
|
||||
|
||||
@@ -104,6 +104,17 @@ vi.mock("../monitor/agent-components.deps.runtime.js", () => {
|
||||
};
|
||||
});
|
||||
|
||||
vi.mock("../interactive-dispatch.js", async () => {
|
||||
const actual = await vi.importActual<typeof import("../interactive-dispatch.js")>(
|
||||
"../interactive-dispatch.js",
|
||||
);
|
||||
return {
|
||||
...actual,
|
||||
dispatchDiscordPluginInteractiveHandler: (...args: unknown[]) =>
|
||||
dispatchPluginInteractiveHandlerMock(...args),
|
||||
};
|
||||
});
|
||||
|
||||
export function resetDiscordComponentRuntimeMocks() {
|
||||
dispatchPluginInteractiveHandlerMock.mockReset().mockResolvedValue({
|
||||
matched: false,
|
||||
|
||||
Reference in New Issue
Block a user