Angular cli ng test: Unable to load reporter "", it is not registered

I am trying to execute the following command from https://cli.angular.io/reference.pdf

ng test --reporters

The following error is displayed. Please tell me how to register a reporter.

05 01 2017 12:47:19.437:ERROR [reporter]: Can not load reporter "", it is not re
gistered!
  Perhaps you are missing some plugin?
05 01 2017 12:47:44.876:WARN [karma]: No captured browser, open http://localhost
:9876/
05 01 2017 12:47:44.894:INFO [karma]: Karma v1.2.0 server started at http://loca
lhost:9876/
05 01 2017 12:47:44.895:INFO [launcher]: Launching browser Chrome with unlimited
 concurrency
05 01 2017 12:47:44.897:ERROR [karma]: Found 1 load error
+4
source share
1 answer

I can figure out how to use reporters in angular-cli

I updated the Karma configuration file (karma.conf.js) as follows

require('karma-jasmine-html-reporter'),

and

reporters: config.angularCli && config.angularCli.codeCoverage
              ? ['progress', 'karma-remap-istanbul', 'kjhtml']
              : ['progress', 'kjhtml'],

Then run the following command to install the plugin

npm install karma-jasmine-html-reporter --save-dev

then i run

ng test --code-coverage

He gives me such a report <w640 "

+7
source

Source: https://habr.com/ru/post/1665832/


All Articles