Skip to content

Commit

Permalink
Coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
spirosikmd committed Sep 28, 2016
1 parent 403848e commit cccf0bb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = function (config) {
],

preprocessors: {
'./config/karma-test-shim.js': ['webpack', 'sourcemap']
'./config/karma-test-shim.js': ['coverage', 'webpack', 'sourcemap']
},

webpack: webpackConfig,
Expand Down
11 changes: 11 additions & 0 deletions config/webpack.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,17 @@ module.exports = {
include: helpers.root('src', 'app'),
loader: 'raw'
}
],

postLoaders: [
{
test: /\.ts$/, loader: 'istanbul-instrumenter-loader',
include: helpers.root('src'),
exclude: [
/\.spec\.ts$/,
/node_modules/
]
}
]
}
};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"html-loader": "^0.4.3",
"html-webpack-plugin": "^2.15.0",
"isparta": "^4.0.0",
"istanbul-instrumenter-loader": "^0.2.0",
"jasmine-core": "^2.5.2",
"json-loader": "^0.5.4",
"karma": "^1.3.0",
Expand Down

0 comments on commit cccf0bb

Please sign in to comment.