mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 18:04:59 +00:00
fix: stabilize CI type and test harness coverage
This commit is contained in:
@@ -10,12 +10,14 @@ export const sendChatActionSpy: Mock = vi.fn();
|
||||
type ApiStub = {
|
||||
config: { use: (arg: unknown) => void };
|
||||
sendChatAction: Mock;
|
||||
sendMessage: Mock;
|
||||
setMyCommands: (commands: Array<{ command: string; description: string }>) => Promise<void>;
|
||||
};
|
||||
|
||||
const apiStub: ApiStub = {
|
||||
config: { use: useSpy },
|
||||
sendChatAction: sendChatActionSpy,
|
||||
sendMessage: vi.fn(async () => ({ message_id: 1 })),
|
||||
setMyCommands: vi.fn(async () => undefined),
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user