UNPKG

torotask

Version:

Task queue processing in NodeJS based on BullMQ and Redis

21 lines 639 B
/** * Simple mock factories for testing * These will be expanded as needed for specific test cases */ /** * Creates mock payload for testing */ export declare function createMockPayload(overrides?: any): any; /** * Creates mock Redis configuration for testing */ export declare function createMockRedisConfig(overrides?: any): any; /** * Creates a mock task handler function */ export declare function createMockTaskHandler<T = any, R = any>(result?: R): (payload: T) => Promise<R>; /** * Creates a mock job for testing */ export declare function createMockJob(overrides?: any): any; //# sourceMappingURL=mock-factories.d.ts.map