Files
ReadMeABook/tests/helpers/job-queue.ts
T
kikootwo 4b90b35748 Add Transmission/NZBGet and per-client paths and much more
Extend multi-download-client support to include Transmission and NZBGet and introduce per-client custom download paths. Adds protocol mapping and new client types, Transmission/NZBGet integration services, API CRUD and validation changes, UI components/modal updates and live path previews, and manager routing by protocol. Includes DB migrations (download_path on download_history, interactive_search_access on users), schema updates, and related processor/service fixes and tests to ensure backward compatibility and proper path resolution.
2026-02-09 19:45:43 -05:00

23 lines
619 B
TypeScript

/**
* Component: Job Queue Mock Factory
* Documentation: documentation/backend/services/jobs.md
*/
import { vi } from 'vitest';
export const createJobQueueMock = () => ({
addSearchJob: vi.fn(),
addDownloadJob: vi.fn(),
addMonitorJob: vi.fn(),
addOrganizeJob: vi.fn(),
addPlexScanJob: vi.fn(),
addPlexMatchJob: vi.fn(),
addPlexRecentlyAddedJob: vi.fn(),
addMonitorRssFeedsJob: vi.fn(),
addAudibleRefreshJob: vi.fn(),
addRetryMissingTorrentsJob: vi.fn(),
addRetryFailedImportsJob: vi.fn(),
addCleanupSeededTorrentsJob: vi.fn(),
addNotificationJob: vi.fn().mockResolvedValue(undefined),
});