After angular 14 upgrade - codeCoverage unknown parameter error

Viewed 31

After upgrading from angular 13 to 14, the command ng test angular-uicomp-lib --codeCoverage=true(where angular-uicomp-lib is folder name to be tested) is failing. Getting following error: Error: Unknown argument: codeCoverage

Need to know what can be done such that the command executes successfully. TIA.

1 Answers

Add coverage-istanbul to your reporters. For example:

 reporters: ['progress', 'kjhtml', 'coverage-istanbul'],
Related