Files
ReadMeABook/tests/helpers/job-queue.ts
T
kikootwo 94dbaf073b Add backend unit test framework and modularize settings UI
Introduced a Vitest-based backend unit testing framework with supporting scripts, helpers, and GitHub Actions integration. Refactored the admin settings page to a modular architecture, splitting monolithic logic into feature-specific tabs and hooks for improved maintainability and testability. Updated documentation to reflect the new testing setup and settings architecture, and added new dependencies for testing utilities.
2026-01-28 11:41:59 -05:00

22 lines
559 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(),
});