ManuelDeLeon / jss-angular-code-coverage

0 stars 0 forks source link

Cannot use the code coverage with webpack2 #1

Open aaltotsky opened 7 years ago

aaltotsky commented 7 years ago

I tried to use your example with the webpack2 (https://github.com/aspnet/JavaScriptServices/tree/dev/templates/Angular2Spa) but I was not able to produce the code coverage report. I modified webpack as the following:

var path = require('path'); var webpackConfig = require('../../webpack.config.js')().filter(config => config.target !== 'node'); webpackConfig[0].module.loaders = [{ test: /.ts$/, include: [path.resolve(__dirname, "../app/")], loader: 'istanbul-instrumenter-loader', exclude: [/.spec.ts$/], enforce: 'post' }];

Do you have any suggestions? Thank you.

aaltotsky commented 7 years ago

I also posted the same question on https://github.com/aspnet/JavaScriptServices/issues/835.

checrame commented 7 years ago

Did you ever find a solution? I am experiencing the same issue.