From 20b414a6c68d687645d5cd50306602085042f1d8 Mon Sep 17 00:00:00 2001 From: Brandon Parmenter Date: Sun, 28 Jun 2015 20:30:38 -0400 Subject: [PATCH 1/2] Istanbul now ignores libs --- karma.conf.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/karma.conf.js b/karma.conf.js index 2cd04b3..e125429 100755 --- a/karma.conf.js +++ b/karma.conf.js @@ -1,5 +1,7 @@ // Karma configuration +var istanbul = require('browserify-istanbul'); + 'use strict'; module.exports = function (config) { @@ -33,7 +35,9 @@ module.exports = function (config) { browserify: { debug: true, - transform: ['debowerify', 'html2js-browserify', 'browserify-istanbul'], + transform: ['debowerify', 'html2js-browserify', istanbul({ + 'ignore': ['**/*.spec.js', '**/libs/**'] + })], // don't forget to register the extensions extensions: ['.js'] @@ -74,4 +78,4 @@ module.exports = function (config) { singleRun: false }); -}; \ No newline at end of file +}; From d8ebde24db4d6e7dccf3d1f87a9d0ea128d8b60f Mon Sep 17 00:00:00 2001 From: Brandon Parmenter Date: Sun, 28 Jun 2015 20:36:13 -0400 Subject: [PATCH 2/2] Fix 2 spaces -> 4 spaces --- karma.conf.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/karma.conf.js b/karma.conf.js index e125429..3458879 100755 --- a/karma.conf.js +++ b/karma.conf.js @@ -36,7 +36,7 @@ module.exports = function (config) { browserify: { debug: true, transform: ['debowerify', 'html2js-browserify', istanbul({ - 'ignore': ['**/*.spec.js', '**/libs/**'] + 'ignore': ['**/*.spec.js', '**/libs/**'] })], // don't forget to register the extensions