Skip to content

Commit 3880c00

Browse files
committed
refactor: fix nx-plugin unit tests
1 parent f1996ad commit 3880c00

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ describe('runAutorunExecutor', () => {
5151
onError: expect.any(Function),
5252
onStdout: expect.any(Function),
5353
},
54-
verbose: false,
54+
verbose: true,
5555
});
5656
});
5757
});

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export default async function runAutorunExecutor(
4444
await executeProcess({
4545
...createCliCommandObject({ command, args: cliArgumentObject }),
4646
...(context.cwd ? { cwd: context.cwd } : {}),
47+
...(isVerbose() || verbose ? { verbose: true } : {}),
4748
});
4849
} catch (error) {
4950
logger.error(error);

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ describe('runAutorunExecutor', () => {
5252
onError: expect.any(Function),
5353
onStdout: expect.any(Function),
5454
},
55-
verbose: false,
5655
});
5756
});
5857

@@ -74,7 +73,6 @@ describe('runAutorunExecutor', () => {
7473
onError: expect.any(Function),
7574
onStdout: expect.any(Function),
7675
},
77-
verbose: false,
7876
});
7977
});
8078

packages/nx-plugin/src/internal/execute-process.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ export type ProcessConfig = {
8686
command: string;
8787
args?: string[];
8888
cwd?: string;
89+
verbose?: boolean;
8990
observer?: ProcessObserver;
9091
ignoreExitCode?: boolean;
9192
};

0 commit comments

Comments
 (0)