Q. Which Angular CLI command is used to run unit tests?

  • (A) ng build --test
  • (B) ng run tests
  • (C) ng test
  • (D) ng serve --test
πŸ’¬ Discuss
βœ… Correct Answer: (C) ng test
Explanation: `ng test` compiles the application and runs unit tests using Karma.
Explanation by: Mr. Dubey
`ng test` compiles the application and runs unit tests using Karma.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
100
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
82%
Success Rate