mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor(core): Move integration test utils for insights (#16693)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { mockInstance } from '@n8n/backend-test-utils';
|
||||
import { mock } from 'jest-mock-extended';
|
||||
import type {
|
||||
INodeListSearchResult,
|
||||
@@ -8,7 +9,6 @@ import type {
|
||||
|
||||
import { DynamicNodeParametersService } from '@/services/dynamic-node-parameters.service';
|
||||
import * as AdditionalData from '@/workflow-execute-additional-data';
|
||||
import { mockInstance } from '@test/mocking';
|
||||
|
||||
import { createOwner } from '../shared/db/users';
|
||||
import type { SuperAgentTest } from '../shared/types';
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
import {
|
||||
mockInstance,
|
||||
randomEmail,
|
||||
randomInvalidPassword,
|
||||
randomName,
|
||||
randomValidPassword,
|
||||
} from '@n8n/backend-test-utils';
|
||||
import type { User } from '@n8n/db';
|
||||
import { ProjectRelationRepository } from '@n8n/db';
|
||||
import { UserRepository } from '@n8n/db';
|
||||
@@ -14,14 +21,7 @@ import {
|
||||
assertStoredUserProps,
|
||||
assertUserInviteResult,
|
||||
} from './assertions';
|
||||
import { mockInstance } from '../../../shared/mocking';
|
||||
import { createMember, createOwner, createUserShell } from '../../shared/db/users';
|
||||
import {
|
||||
randomEmail,
|
||||
randomInvalidPassword,
|
||||
randomName,
|
||||
randomValidPassword,
|
||||
} from '../../shared/random';
|
||||
import * as utils from '../../shared/utils';
|
||||
import type { UserInvitationResult } from '../../shared/utils/users';
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { testDb } from '@n8n/backend-test-utils';
|
||||
import type { CredentialsEntity } from '@n8n/db';
|
||||
import type { User } from '@n8n/db';
|
||||
import { Container } from '@n8n/di';
|
||||
@@ -9,7 +10,6 @@ import { OAuth2CredentialController } from '@/controllers/oauth/oauth2-credentia
|
||||
import { CredentialsHelper } from '@/credentials-helper';
|
||||
import { saveCredential } from '@test-integration/db/credentials';
|
||||
import { createMember, createOwner } from '@test-integration/db/users';
|
||||
import * as testDb from '@test-integration/test-db';
|
||||
import type { SuperAgentTest } from '@test-integration/types';
|
||||
import { setupTestServer } from '@test-integration/utils';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user