refactor(core): Prepare insights for move to standalone module (#16426)

This commit is contained in:
Iván Ovejero
2025-06-17 14:51:30 +02:00
committed by GitHub
parent 2bc3f8cf9d
commit ac032418cb
25 changed files with 49 additions and 26 deletions

View File

@@ -1,4 +1,3 @@
import type { Logger } from '@n8n/backend-common';
import { Container } from '@n8n/di';
import { DataSource, EntityManager, type EntityMetadata } from '@n8n/typeorm';
import { mock } from 'jest-mock-extended';
@@ -24,8 +23,6 @@ export const mockEntityManager = (entityClass: Class) => {
return entityManager;
};
export const mockLogger = () => mock<Logger>({ scoped: jest.fn().mockReturnValue(mock<Logger>()) });
export const mockCipher = () =>
mock<Cipher>({
encrypt: (data) => (typeof data === 'string' ? data : JSON.stringify(data)),