mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
perf(core): Introduce decorator to report slow method calls (#17729)
This commit is contained in:
@@ -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', () => ({
|
||||
|
||||
Reference in New Issue
Block a user