I'm trying to generate istanbul coverage reports for my react components, using (webpack/karma). But the generated report shows the code after transpile and full of (necessary) code.
Is there a way to view before transpiling JSX code in the report or at least only the real application code?
I am using a istanbul-instrumenter as a postLoader in my karma.conf.js
:
webpack: {
postLoaders: [ {
//delays coverage til after tests are run, fixing transpiled source coverage error
test: /\.jsx$/,
exclude: /(test|node_modules|bower_components)\//,
loader: 'istanbul-instrumenter' }
]
}