angularangular-clikarma-jasminengrxnrwl

how can i run a specific angular spec test file in NX workspace?


is there any way to run an specific angular spec test file in Nx work space?

Recently i moved my Angular 4 cli application into Nx work space. Previously i used fdescribe to achieve this functionality.
So please suggest me if there is any option to do this in Nx work space?


Solution

  • It would be the same way we do it for a single app, but please note you should use --app='your-app-name' along with ng test, so the final command looks like below,

    ng test --app='app1'