Skip to content

Commit b3d95b6

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

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

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

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,14 @@ describe('runAutorunExecutor', () => {
4343
}),
4444
);
4545
expect(executeProcessSpy).toHaveBeenCalledTimes(1);
46-
expect(executeProcessSpy).toHaveBeenCalledWith(
47-
expect.objectContaining({
48-
command: 'npx',
49-
args: expect.arrayContaining(['@code-pushup/cli']),
50-
cwd: process.cwd(),
51-
observer: expect.objectContaining({
52-
onError: expect.any(Function),
53-
onStdout: expect.any(Function),
54-
}),
55-
}),
56-
);
46+
expect(executeProcessSpy).toHaveBeenCalledWith({
47+
command: 'npx',
48+
args: expect.arrayContaining(['@code-pushup/cli']),
49+
cwd: process.cwd(),
50+
observer: {
51+
onError: expect.any(Function),
52+
onStdout: expect.any(Function),
53+
},
54+
});
5755
});
5856
});

0 commit comments

Comments
 (0)