mirror of
https://github.com/immich-app/immich.git
synced 2025-01-04 02:46:47 +01:00
50c9bc0336
* chore: jest => vitest * chore: replace jest-when
15 lines
454 B
TypeScript
15 lines
454 B
TypeScript
import { ISearchRepository } from 'src/interfaces/search.interface';
|
|
import { Mocked, vitest } from 'vitest';
|
|
|
|
export const newSearchRepositoryMock = (): Mocked<ISearchRepository> => {
|
|
return {
|
|
init: vitest.fn(),
|
|
searchMetadata: vitest.fn(),
|
|
searchSmart: vitest.fn(),
|
|
searchFaces: vitest.fn(),
|
|
upsert: vitest.fn(),
|
|
searchPlaces: vitest.fn(),
|
|
getAssetsByCity: vitest.fn(),
|
|
deleteAllSearchEmbeddings: vitest.fn(),
|
|
};
|
|
};
|