fix(ci): stabilize tests and detect-secrets after dep updates

This commit is contained in:
Peter Steinberger
2026-03-07 11:13:55 +00:00
parent ac63f30cd2
commit addd290f88
7 changed files with 69 additions and 33 deletions

View File

@@ -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: {