diff --git a/workflow_tests/utils/ExtendedAct.ts b/workflow_tests/utils/ExtendedAct.ts index addd59be43c7..99b8551337b8 100644 --- a/workflow_tests/utils/ExtendedAct.ts +++ b/workflow_tests/utils/ExtendedAct.ts @@ -8,7 +8,7 @@ import type {MockJob} from './JobMocker'; type ExtendedActOpts = RunOpts & {actor?: string; workflowFile?: string; mockJobs?: Record}; -// @ts-expect-error Override shouldn't be done on private methods - wait until the issue is resolved +// @ts-expect-error Override shouldn't be done on private methods wait until https://github.com/kiegroup/act-js/issues/77 is resolved or try to create a params workaround class ExtendedAct extends kieActJs.Act { async parseRunOpts(opts?: ExtendedActOpts) { const {cwd, actArguments, proxy} = await super['parseRunOpts'](opts); diff --git a/workflow_tests/utils/preGenerateTest.ts b/workflow_tests/utils/preGenerateTest.ts index 1a8bdfd85ed5..1bc5a01975e7 100644 --- a/workflow_tests/utils/preGenerateTest.ts +++ b/workflow_tests/utils/preGenerateTest.ts @@ -125,8 +125,7 @@ const stepAssertionTemplate = (stepName: string, jobId: string, stepMessage: str const jobMocksTemplate = (jobMocksName: string, stepMocks: string[]) => { const stepMocksString = stepMocks.map((stepMock) => `${stepMock}`).join(','); - return `const ${jobMocksName} = [${stepMocksString} - ];`; + return `const ${jobMocksName} = [${stepMocksString}\n];`; }; const jobAssertionTemplate = (jobAssertionName: string, stepAssertionsContent: string) => ` diff --git a/workflow_tests/utils/utils.ts b/workflow_tests/utils/utils.ts index d6db1ff8a92b..7e477c6ab63d 100644 --- a/workflow_tests/utils/utils.ts +++ b/workflow_tests/utils/utils.ts @@ -160,7 +160,7 @@ function setJobRunners(act: ExtendedAct, jobs: Record, workflowP return act; } -function deepCopy(originalObject: T): T { +function deepCopy>(originalObject: TObject): TObject { // eslint-disable-next-line @typescript-eslint/no-unsafe-return return JSON.parse(JSON.stringify(originalObject)); }