mirror of
https://github.com/immich-app/immich.git
synced 2024-12-28 22:51:59 +00:00
50c9bc0336
* chore: jest => vitest * chore: replace jest-when
10 lines
330 B
TypeScript
10 lines
330 B
TypeScript
import { IMachineLearningRepository } from 'src/interfaces/machine-learning.interface';
|
|
import { Mocked, vitest } from 'vitest';
|
|
|
|
export const newMachineLearningRepositoryMock = (): Mocked<IMachineLearningRepository> => {
|
|
return {
|
|
encodeImage: vitest.fn(),
|
|
encodeText: vitest.fn(),
|
|
detectFaces: vitest.fn(),
|
|
};
|
|
};
|