50 lines
988 B
JavaScript
50 lines
988 B
JavaScript
|
/* eslint-disable no-var, strict */
|
||
|
'use strict';
|
||
|
|
||
|
var webpackConfig = require('./webpack.config.js');
|
||
|
|
||
|
module.exports = function(config) {
|
||
|
// Documentation: https://karma-runner.github.io/0.13/config/configuration-file.html
|
||
|
config.set({
|
||
|
browsers: [ 'PhantomJS' ],
|
||
|
|
||
|
files: [
|
||
|
// This ensures we have the es6 shims in place and then loads all the tests
|
||
|
'test/main.js'
|
||
|
],
|
||
|
|
||
|
port: 9876,
|
||
|
|
||
|
frameworks: [ 'jasmine' ],
|
||
|
|
||
|
logLevel: config.LOG_INFO, //config.LOG_DEBUG
|
||
|
|
||
|
preprocessors: {
|
||
|
'test/main.js': [ 'webpack', 'sourcemap' ]
|
||
|
},
|
||
|
|
||
|
webpack: {
|
||
|
devtool: 'inline-source-map',
|
||
|
module: webpackConfig.module,
|
||
|
resolve: webpackConfig.resolve
|
||
|
},
|
||
|
|
||
|
webpackMiddleware: {
|
||
|
quiet: true,
|
||
|
stats: {
|
||
|
colors: true
|
||
|
}
|
||
|
},
|
||
|
|
||
|
// reporter options
|
||
|
mochaReporter: {
|
||
|
colors: {
|
||
|
success: 'bgGreen',
|
||
|
info: 'cyan',
|
||
|
warning: 'bgBlue',
|
||
|
error: 'bgRed'
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
};
|