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
All checks were successful
farmcontrol/farmcontrol-api/pipeline/head This commit looks good
This commit is contained in:
parent
4231d548cc
commit
c710f46a6f
@ -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', () => ({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user