add library teardown

This commit is contained in:
Jonathan Jogenfors
2024-02-29 22:50:06 +01:00
parent bd4c03067b
commit 735747c939
8 changed files with 25 additions and 11 deletions
@@ -14,6 +14,7 @@ export const newDatabaseRepositoryMock = (): jest.Mocked<IDatabaseRepository> =>
runMigrations: jest.fn(),
withLock: jest.fn().mockImplementation((_, function_: <R>() => Promise<R>) => function_()),
tryLock: jest.fn(),
releaseLock: jest.fn(),
isBusy: jest.fn(),
wait: jest.fn(),
};