mirror of
https://github.com/kikootwo/ReadMeABook.git
synced 2026-06-02 20:30:10 +00:00
94dbaf073b
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.
22 lines
559 B
TypeScript
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(),
|
|
});
|