mirror of
https://github.com/immich-app/immich.git
synced 2025-01-06 03:46:47 +01:00
15 lines
434 B
TypeScript
15 lines
434 B
TypeScript
|
import { IConfigRepository } from 'src/interfaces/config.interface';
|
||
|
import { DatabaseExtension } from 'src/interfaces/database.interface';
|
||
|
import { Mocked, vitest } from 'vitest';
|
||
|
|
||
|
export const newConfigRepositoryMock = (): Mocked<IConfigRepository> => {
|
||
|
return {
|
||
|
getEnv: vitest.fn().mockReturnValue({
|
||
|
database: {
|
||
|
skipMigration: false,
|
||
|
vectorExtension: DatabaseExtension.VECTORS,
|
||
|
},
|
||
|
}),
|
||
|
};
|
||
|
};
|