Skip to content

Cannot use the code coverage with webpack2 #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
aaltotsky opened this issue Apr 2, 2017 · 2 comments
Open

Cannot use the code coverage with webpack2 #1

aaltotsky opened this issue Apr 2, 2017 · 2 comments

Comments

@aaltotsky
Copy link

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
Copy link
Author

I also posted the same question on aspnet/JavaScriptServices#835.

@checrame
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants