mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
refactor(core): Move integration test utils for insights (#16693)
This commit is contained in:
@@ -1,13 +1,15 @@
|
||||
import { FeatureNotLicensedError } from '@/errors/feature-not-licensed.error';
|
||||
import { Telemetry } from '@/telemetry';
|
||||
import { mockInstance } from '@test/mocking';
|
||||
import {
|
||||
createTeamProject,
|
||||
getProjectByNameOrFail,
|
||||
linkUserToProject,
|
||||
getAllProjectRelations,
|
||||
getProjectRoleForUser,
|
||||
} from '@test-integration/db/projects';
|
||||
} from '@n8n/backend-test-utils';
|
||||
import { testDb } from '@n8n/backend-test-utils';
|
||||
import { mockInstance } from '@n8n/backend-test-utils';
|
||||
|
||||
import { FeatureNotLicensedError } from '@/errors/feature-not-licensed.error';
|
||||
import { Telemetry } from '@/telemetry';
|
||||
import {
|
||||
createMemberWithApiKey,
|
||||
createOwnerWithApiKey,
|
||||
@@ -15,8 +17,6 @@ import {
|
||||
} from '@test-integration/db/users';
|
||||
import { setupTestServer } from '@test-integration/utils';
|
||||
|
||||
import * as testDb from '../shared/test-db';
|
||||
|
||||
describe('Projects in Public API', () => {
|
||||
const testServer = setupTestServer({ endpointGroups: ['publicApi'] });
|
||||
mockInstance(Telemetry);
|
||||
|
||||
Reference in New Issue
Block a user