Skip to content

Commit fe6d69b

Browse files
committed
refactor: fix int
1 parent 1d006f2 commit fe6d69b

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,13 @@ describe('runAutorunExecutor', () => {
4545
expect(executeProcessSpy).toHaveBeenCalledTimes(1);
4646
expect(executeProcessSpy).toHaveBeenCalledWith({
4747
command: 'npx',
48-
args: expect.arrayContaining(['@code-pushup/cli']),
48+
args: expect.arrayContaining([
49+
'@code-pushup/cli',
50+
'--verbose',
51+
'--no-progress',
52+
]),
4953
cwd: process.cwd(),
54+
verbose: true,
5055
observer: {
5156
onError: expect.any(Function),
5257
onStdout: expect.any(Function),

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ export default async function runAutorunExecutor(
5555
await executeProcess({
5656
...createCliCommandObject({ command, args: cliArgumentObject, bin }),
5757
...(context.cwd ? { cwd: context.cwd } : {}),
58-
env,
59-
dryRun,
60-
verbose,
58+
...(env ? { env } : {}),
59+
...(dryRun != null ? { dryRun } : {}),
60+
...(verbose ? { verbose } : {}),
6161
});
6262
} catch (error) {
6363
logger.error(error);

0 commit comments

Comments
 (0)