I want to pass some arguments to ng test
command when running affected projects (for CI purposes).
For example: ng test --codeCoverage=true --watch=false --progress=false
.
How it can be done through nx affected:test
?
Tried nx affected --help
, but it doesn't contain such information.
As a naive solution i can write custom node script, execute and get result of nx print-affected
and then run commands from this result, but I want to find more efficient way.
Asked
Active
Viewed 3,816 times
8

nickbullock
- 6,424
- 9
- 27
-
@vsavkin help us ples – Sharikov Vladislav Dec 26 '19 at 12:20
1 Answers
6
I found out that nx-cli
redirects all unknown parameters to ng-cli
.
So it can be done like: nx affected:test --codeCoverage --watch=false --progress=false
.
UPD:
I can't find it in the docs, but running nx serve
will throw message like:

nickbullock
- 6,424
- 9
- 27