refactor(core): Support multiple log scopes (#11318)

This commit is contained in:
Iván Ovejero
2024-10-22 17:20:14 +02:00
committed by GitHub
parent c863abd083
commit 43f31b86aa
16 changed files with 55 additions and 37 deletions

View File

@@ -25,5 +25,4 @@ export const mockEntityManager = (entityClass: Class) => {
return entityManager;
};
export const mockLogger = () =>
mock<Logger>({ withScope: jest.fn().mockReturnValue(mock<Logger>()) });
export const mockLogger = () => mock<Logger>({ scoped: jest.fn().mockReturnValue(mock<Logger>()) });