Skip to content

Commit 798363f

Browse files
author
John Doe
committed
refactor: wip
1 parent 0c052cb commit 798363f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/nx-plugin/src/executors/cli/executor.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export type ExecutorOutput = {
1010
error?: Error;
1111
};
1212

13+
/* eslint-disable max-lines-per-function */
1314
export default async function runAutorunExecutor(
1415
terminalAndExecutorOptions: AutorunCommandExecutorOptions,
1516
context: ExecutorContext,
@@ -62,3 +63,4 @@ export default async function runAutorunExecutor(
6263
command: commandString,
6364
};
6465
}
66+
/* eslint-enable max-lines-per-function */

packages/nx-plugin/src/executors/cli/executor.unit.test.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ describe('runAutorunExecutor', () => {
122122
expect.stringContaining(`Run CLI executor`),
123123
);
124124
expect(loggerInfoSpy).toHaveBeenCalledWith(
125-
expect.stringContaining('Command: npx @code-pushup/cli'),
125+
expect.stringContaining('Command:'),
126126
);
127127
});
128128

@@ -132,9 +132,7 @@ describe('runAutorunExecutor', () => {
132132
expect(loggerInfoSpy).toHaveBeenCalledTimes(0);
133133
expect(loggerWarnSpy).toHaveBeenCalledTimes(1);
134134
expect(loggerWarnSpy).toHaveBeenCalledWith(
135-
expect.stringContaining(
136-
'DryRun execution of: npx @code-pushup/cli --dryRun',
137-
),
135+
expect.stringContaining('DryRun execution of'),
138136
);
139137
});
140138
});

0 commit comments

Comments
 (0)