Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to get the code coverage (Angular 8) #44

Open
lokeshduraivel opened this issue Nov 6, 2020 · 1 comment
Open

Not able to get the code coverage (Angular 8) #44

lokeshduraivel opened this issue Nov 6, 2020 · 1 comment

Comments

@lokeshduraivel
Copy link

I used this schematic and setup the Jest in my frontend application (Angular 8).
However, am not able to get the code coverage part with the below code.

ng test --no-watch --code-coverage

Error :
Cannot find module 'karma'
Error: Cannot find module 'karma'

@lokeshduraivel lokeshduraivel changed the title Not able to extract the code coverage (Angular 8) Not able to get the code coverage (Angular 8) Nov 6, 2020
@schuchard
Copy link
Collaborator

What version of Jest are you on? The latest docs show the command as:

ng test --no-watch --coverage

I'm not sure why you're getting Karma errors though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants