Skip to content

Commit 1106a36

Browse files
author
John Doe
committed
refactor: fix lint
1 parent 2dcfb65 commit 1106a36

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

e2e/nx-plugin-e2e/tests/plugin-create-nodes.e2e.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,8 @@ describe('nx-plugin', () => {
199199
// Nx command
200200
expect(cleanStdout).toContain('nx run my-lib:code-pushup');
201201
// Run CLI executor
202-
expect(cleanStdout).toContain('Command: npx @code-pushup/cli');
202+
expect(cleanStdout).toContain('DryRun execution of:');
203+
expect(cleanStdout).toContain('npx @code-pushup/cli');
203204
expect(cleanStdout).toContain('--dryRun --verbose');
204205
});
205206

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default async function runAutorunExecutor(
2929
};
3030
const commandString = createCliCommandString({
3131
command,
32-
args: args,
32+
args,
3333
bin,
3434
});
3535

@@ -40,7 +40,7 @@ export default async function runAutorunExecutor(
4040
await executeProcess({
4141
...createCliCommandObject({ command, args, bin }),
4242
...(context.cwd ? { cwd: context.cwd } : {}),
43-
...(Object.keys(executorEnvVariables).length
43+
...(Object.keys(executorEnvVariables).length > 0
4444
? { env: executorEnvVariables }
4545
: {}),
4646
});

0 commit comments

Comments
 (0)