mirror of
https://github.com/Art051/immich.git
synced 2025-08-11 19:29:00 +00:00
chore: migrate to vitest (#7156)
* chore: jest => vitest * chore: replace jest-when
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
import { IMoveRepository } from 'src/interfaces/move.interface';
|
||||
import { Mocked, vitest } from 'vitest';
|
||||
|
||||
export const newMoveRepositoryMock = (): jest.Mocked<IMoveRepository> => {
|
||||
export const newMoveRepositoryMock = (): Mocked<IMoveRepository> => {
|
||||
return {
|
||||
create: jest.fn(),
|
||||
getByEntity: jest.fn(),
|
||||
update: jest.fn(),
|
||||
delete: jest.fn(),
|
||||
create: vitest.fn(),
|
||||
getByEntity: vitest.fn(),
|
||||
update: vitest.fn(),
|
||||
delete: vitest.fn(),
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user