refactor(core): Refactor some of the external secrets related code (no-changelog) (#14791)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2025-04-22 18:11:01 +02:00
committed by GitHub
parent e83a64b84a
commit 749f130d4f
27 changed files with 480 additions and 350 deletions

View File

@@ -1,7 +1,6 @@
import { Container } from '@n8n/di';
import cookieParser from 'cookie-parser';
import express from 'express';
import { Logger } from 'n8n-core';
import type superagent from 'superagent';
import request from 'supertest';
import { URL } from 'url';
@@ -18,7 +17,7 @@ import { Push } from '@/push';
import type { APIRequest } from '@/requests';
import { Telemetry } from '@/telemetry';
import { mockInstance } from '../../../shared/mocking';
import { mockInstance, mockLogger } from '../../../shared/mocking';
import { PUBLIC_API_REST_PATH_SEGMENT, REST_PATH_SEGMENT } from '../constants';
import { LicenseMocker } from '../license';
import * as testDb from '../test-db';
@@ -101,7 +100,7 @@ export const setupTestServer = ({
});
// Mock all telemetry and logging
mockInstance(Logger);
mockLogger();
mockInstance(PostHogClient);
mockInstance(Push);
mockInstance(Telemetry);