litixsoft / karma-mocha-reporter

Karma reporter plugin with mocha style logging.
Other
197 stars 45 forks source link

Install procedure #104

Open qortex opened 5 years ago

qortex commented 5 years ago

I need to add require('karma-mocha-reporter') in the plugins section of the karma.conf.js file to get it working. Otherwise, I would get this error when running ng test:

Can not load reporter "mocha", it is not registered!

It would be useful to include that in the INSTALL section of the readme if it is confirmed that this fix applies to all situations.

kirill-konshin commented 5 years ago

If you don't have such section all karma-* packages will be loaded automatically. If you have this section package maintainers assume that you know what you're doing :)

DDoerner commented 4 years ago

Understandable. Could still be useful to add a note in the README because templates such as the one Angular generates place the section

D4nte commented 2 years ago

I guess the issue is that other maintainer tell you to add the require property in their docs when it is not needed :)