perf(core): Introduce decorator to report slow method calls (#17729)

This commit is contained in:
Iván Ovejero
2025-07-29 12:37:44 +02:00
committed by GitHub
parent ec6f243039
commit 056302ebe5
5 changed files with 72 additions and 3 deletions

View File

@@ -4,10 +4,8 @@ import { getCommunityNodeTypes } from '../../utils/community-node-types-utils';
import { CommunityNodeTypesService } from '../community-node-types.service';
jest.mock('@n8n/backend-common', () => ({
...jest.requireActual('@n8n/backend-common'),
inProduction: jest.fn().mockReturnValue(false),
logger: jest.fn().mockImplementation(() => ({
error: jest.fn(),
})),
}));
jest.mock('../../utils/community-node-types-utils', () => ({