mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-29 21:25:02 +00:00
fix(ci): stabilize tests and detect-secrets after dep updates
This commit is contained in:
@@ -1,13 +1,31 @@
|
||||
import { vi } from "vitest";
|
||||
|
||||
export function createFeishuClientMockModule() {
|
||||
export function createFeishuClientMockModule(): {
|
||||
createFeishuWSClient: () => { start: () => void };
|
||||
createEventDispatcher: () => { register: () => void };
|
||||
} {
|
||||
return {
|
||||
createFeishuWSClient: vi.fn(() => ({ start: vi.fn() })),
|
||||
createEventDispatcher: vi.fn(() => ({ register: vi.fn() })),
|
||||
};
|
||||
}
|
||||
|
||||
export function createFeishuRuntimeMockModule() {
|
||||
export function createFeishuRuntimeMockModule(): {
|
||||
getFeishuRuntime: () => {
|
||||
channel: {
|
||||
debounce: {
|
||||
resolveInboundDebounceMs: () => number;
|
||||
createInboundDebouncer: () => {
|
||||
enqueue: () => Promise<void>;
|
||||
flushKey: () => Promise<void>;
|
||||
};
|
||||
};
|
||||
text: {
|
||||
hasControlCommand: () => boolean;
|
||||
};
|
||||
};
|
||||
};
|
||||
} {
|
||||
return {
|
||||
getFeishuRuntime: () => ({
|
||||
channel: {
|
||||
|
||||
Reference in New Issue
Block a user