karma-webpack-error-reporter

v0.0.3
Karma reporter that nicely formats Webpack output

karma-webpack-error-reporter

Extends karma-mocha-reporter with better error reporting, if you're using Webpack.

In a nutshell, you go from::

/home/user/dev/stations-ui/src/modules/stations/tests/controllers.spec.js:100679:11 <- webpack:///src/modules/stations/controllers.js:124:0

to::

file "src/modules/stations/controllers.js", line 124: raw.charge_points = raw.charge_points.map(cp => new ChargePoint(cp))

That's it.

Installation

Install it with::

{ reporters: ['webpack-error'], }

in your Karma configuration file.

License

MIT

npm i karma-webpack-error-reporter

Metadata

  • MIT
  • Whatever
  • Polyconseil
  • released 11/10/2016

Downloads

Maintainers