refactor(core): Move integration test utils for insights (#16693)

This commit is contained in:
Iván Ovejero
2025-06-25 17:32:54 +02:00
committed by GitHub
parent a6ded1fc80
commit 7c33292483
231 changed files with 684 additions and 651 deletions

View File

@@ -1,14 +1,13 @@
import { CredentialsEntity } from '@n8n/db';
import { Project } from '@n8n/db';
import { User } from '@n8n/db';
import { randomInt } from 'n8n-workflow';
import {
randomCredentialPayload,
randomEmail,
randomName,
uniqueId,
} from '../integration/shared/random';
} from '@n8n/backend-test-utils';
import { CredentialsEntity } from '@n8n/db';
import { Project } from '@n8n/db';
import { User } from '@n8n/db';
import { randomInt } from 'n8n-workflow';
export const mockCredential = (): CredentialsEntity =>
Object.assign(new CredentialsEntity(), randomCredentialPayload());