D
D
Drovosek012021-07-29 18:32:48
Angular
Drovosek01, 2021-07-29 18:32:48

How to find out which files do not have tests in an Angular project?

There is a project on Angular 11. Tests are written using jest.
How to find out which components/pipes/services do not have tests, i.e. for example, next to the file with their code is not a file with the suffix "spec"?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Kadyrov, 2021-12-12
@Ahmad66617

After executing the command ng test --watch=false --code-coverage , a coverage folder will be created - and you can configure the location in the config - and in this folder there will be a project build with an index file - after switching to it - you will see the amount of coverage of your tests project

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question