mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor(core): Move first batch of repositories to @n8n/db (#15130)
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import type { ExecutionSummaries } from '@n8n/db';
|
||||
import { ExecutionMetadataRepository } from '@n8n/db';
|
||||
import { ExecutionRepository } from '@n8n/db';
|
||||
import { Container } from '@n8n/di';
|
||||
import { mock } from 'jest-mock-extended';
|
||||
|
||||
import { ExecutionMetadataRepository } from '@/databases/repositories/execution-metadata.repository';
|
||||
import { ExecutionRepository } from '@/databases/repositories/execution.repository';
|
||||
import { WorkflowRepository } from '@/databases/repositories/workflow.repository';
|
||||
import { ExecutionService } from '@/executions/execution.service';
|
||||
import { createTeamProject } from '@test-integration/db/projects';
|
||||
@@ -39,7 +39,7 @@ describe('ExecutionService', () => {
|
||||
});
|
||||
|
||||
afterEach(async () => {
|
||||
await testDb.truncate(['Execution']);
|
||||
await testDb.truncate(['ExecutionEntity']);
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
@@ -609,7 +609,7 @@ describe('ExecutionService', () => {
|
||||
};
|
||||
|
||||
afterEach(async () => {
|
||||
await testDb.truncate(['AnnotationTag', 'ExecutionAnnotation']);
|
||||
await testDb.truncate(['AnnotationTagEntity', 'ExecutionAnnotation']);
|
||||
});
|
||||
|
||||
test('should add and retrieve annotation', async () => {
|
||||
|
||||
Reference in New Issue
Block a user