Skip to content

Commit f7e7aca

Browse files
Update packages/nx-plugin/src/executors/cli/executor.unit.test.ts
Co-authored-by: Matěj Chalk <34691111+matejchalk@users.noreply.github.com>
1 parent c15877f commit f7e7aca

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

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

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -69,17 +69,15 @@ describe('runAutorunExecutor', () => {
6969
);
7070
expect(output.success).toBe(true);
7171
expect(output.command).toMatch('utils');
72-
expect(executeProcessSpy).toHaveBeenCalledWith(
73-
expect.objectContaining({
74-
command: 'npx',
75-
args: expect.arrayContaining(['@code-pushup/cli']),
76-
cwd: 'cwd-form-context',
77-
observer: expect.objectContaining({
78-
onError: expect.any(Function),
79-
onStdout: expect.any(Function),
80-
}),
81-
}),
82-
);
72+
expect(executeProcessSpy).toHaveBeenCalledWith({
73+
command: 'npx',
74+
args: expect.arrayContaining(['@code-pushup/cli']),
75+
cwd: 'cwd-form-context',
76+
observer: {
77+
onError: expect.any(Function),
78+
onStdout: expect.any(Function),
79+
},
80+
});
8381
});
8482

8583
it('should process executorOptions', async () => {

0 commit comments

Comments
 (0)