mirror of
https://github.com/kikootwo/ReadMeABook.git
synced 2026-06-02 20:30:10 +00:00
4b90b35748
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.
23 lines
619 B
TypeScript
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),
|
|
});
|