refactor(core): Move error execution creation to execution service (no-changelog) (#8006)

Continue breaking down legacy helpers.

Note: `getUserById` is unused.
This commit is contained in:
Iván Ovejero
2023-12-21 14:15:46 +01:00
committed by GitHub
parent d1b2affd2c
commit 9ac8825a67
10 changed files with 106 additions and 110 deletions

View File

@@ -18,6 +18,7 @@ import { createWorkflow, createWorkflowWithTrigger } from '../shared/db/workflow
import { createTag } from '../shared/db/tags';
import { mockInstance } from '../../shared/mocking';
import { Push } from '@/push';
import { ExecutionsService } from '@/executions/executions.service';
let workflowOwnerRole: Role;
let owner: User;
@@ -30,6 +31,7 @@ const testServer = utils.setupTestServer({ endpointGroups: ['publicApi'] });
const license = testServer.license;
mockInstance(Push);
mockInstance(ExecutionsService);
beforeAll(async () => {
const [globalOwnerRole, globalMemberRole, fetchedWorkflowOwnerRole] = await getAllRoles();