mirror of
https://github.com/immich-app/immich.git
synced 2024-11-16 10:28:54 -07:00
50c9bc0336
* chore: jest => vitest * chore: replace jest-when
11 lines
330 B
TypeScript
11 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(),
|
|
};
|
|
};
|