Skip to content

Commit ff7d045

Browse files
author
John Doe
committed
refactor: fix utils logic 2
1 parent beebe69 commit ff7d045

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

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

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,12 @@ describe('runAutorunExecutor', () => {
6060
}),
6161
);
6262
expect(executeProcessSpy).toHaveBeenCalledTimes(1);
63-
expect(executeProcessSpy).toHaveBeenCalledWith({
64-
command: 'npx',
65-
args: expect.arrayContaining(['@code-pushup/cli']),
66-
cwd: process.cwd(),
67-
observer: {
68-
onError: expect.any(Function),
69-
onStdout: expect.any(Function),
70-
},
71-
});
63+
expect(executeProcessSpy).toHaveBeenCalledWith(
64+
expect.objectContaining({
65+
command: 'npx',
66+
args: expect.arrayContaining(['@code-pushup/cli']),
67+
cwd: expect.any(String),
68+
}),
69+
);
7270
});
7371
});

0 commit comments

Comments
 (0)