Skip to content
Permalink
Browse files

fix(test): missing coverage

  • Loading branch information...
rymizuki committed Mar 25, 2016
1 parent 551c2f6 commit 6798eda16bbc47674fe90218361c724f5c68e84e
Showing with 9 additions and 2 deletions.
  1. +5 −2 karma.conf.coffee
  2. +1 −0 package.json
  3. +3 −0 test/index.js
@@ -20,8 +20,7 @@ module.exports = (config) ->
# preprocess matching files before serving them to the browser
# available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
preprocessors: {
'test/index.js': ['webpack', 'coverage']
'test/**/*-spec.js': ['coverage']
'test/index.js': ['webpack']
}

# test results reporter to use
@@ -66,6 +65,10 @@ module.exports = (config) ->
loaders: [
{test: /\.js$/, exclude: /node_modules/, loader: 'babel?presets[]=es2015'}
]
postLoaders: [
{test: /\.js$/, exclude: /(test|node_modules)/, loader: 'istanbul-instrumenter'}
]


coverageReporter:
reporters: [
@@ -21,6 +21,7 @@
"gulp": "^3.9.1",
"gulp-karma": "0.0.5",
"istanbul": "^0.4.2",
"istanbul-instrumenter-loader": "^0.2.0",
"karma": "^0.13.22",
"karma-chrome-launcher": "^0.2.2",
"karma-coverage": "^0.5.5",
@@ -1,2 +1,5 @@
var testsContext = require.context('.', true, /-spec.js$/)
testsContext.keys().forEach(testsContext)

var testsContext = require.context('../script', true, /.js$/)
testsContext.keys().forEach(testsContext)

0 comments on commit 6798eda

Please sign in to comment.
You can’t perform that action at this time.