You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

27 lines
628 B

var path = require('path')
var base = require('./karma.base.config.js')
module.exports = function (config) {
var options = Object.assign(base, {
browsers: ['PhantomJS'],
reporters: ['progress', 'coverage'],
coverageReporter: {
reporters: [
{ type: 'lcov', dir: '../coverage', subdir: '.' },
{ type: 'text-summary', dir: '../coverage', subdir: '.' }
]
},
singleRun: true
})
// add coverage loader
options.webpack.module.preLoaders = [
{
test: /\.js$/,
include: path.resolve(__dirname, '../src'),
loader: 'isparta'
}
]
config.set(options)
}