From 37decbbef4332373901c709a5ae2a25217251829 Mon Sep 17 00:00:00 2001 From: Matt Mazzola Date: Thu, 26 May 2016 11:02:55 -0700 Subject: [PATCH] Enable coverage reporter by default --- .gitignore | 1 + .npmignore | 1 + karma.conf.js | 5 ++--- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 5007202..39cdf02 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ node_modules +coverage typings dist tmp \ No newline at end of file diff --git a/.npmignore b/.npmignore index 7be9d2e..2c4160a 100644 --- a/.npmignore +++ b/.npmignore @@ -1,4 +1,5 @@ node_modules +coverage typings tmp test \ No newline at end of file diff --git a/karma.conf.js b/karma.conf.js index f83823e..c075a8a 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -11,7 +11,7 @@ module.exports = function (config) { { pattern: './tmp/**/*.html', served: true, included: false } ], exclude: [], - reporters: argv.debug ? ['spec'] : ['spec', 'coverage'], + reporters: ['spec', 'coverage'], autoWatch: true, browsers: [argv.debug ? 'Chrome' : 'PhantomJS'], plugins: [ @@ -23,8 +23,7 @@ module.exports = function (config) { 'karma-coverage' ], preprocessors: { - // './dist/**/*.js': ['coverage'], - './tmp/**/*.js': ['sourcemap'] + './tmp/**/*.js': ['coverage', 'sourcemap'] }, coverageReporter: { reporters: [