Added mock implementations for createFileThumbnails and getThumbnail functions in the file management tests to enhance testing capabilities for thumbnail generation and retrieval.
All checks were successful
farmcontrol/farmcontrol-api/pipeline/head This commit looks good

This commit is contained in:
Tom Butcher 2026-07-26 03:10:32 +01:00
parent 4231d548cc
commit c710f46a6f

View File

@ -12,6 +12,8 @@ jest.unstable_mockModule('../../../database/database.js', () => ({
flushFile: jest.fn(),
getModelStats: jest.fn(),
getModelHistory: jest.fn(),
createFileThumbnails: jest.fn(),
getThumbnail: jest.fn(),
}));
jest.unstable_mockModule('../../../database/schemas/management/file.schema.js', () => ({