2017-08-14 08:40:02 -07:00
|
|
|
var webpackConfig = require('./webpack.test.js');
|
|
|
|
|
|
|
|
module.exports = function(config) {
|
|
|
|
var _config = {
|
|
|
|
basePath: '',
|
|
|
|
|
|
|
|
frameworks: ['jasmine'],
|
|
|
|
|
|
|
|
files: [{
|
|
|
|
pattern: './karma-test-shim.js',
|
|
|
|
watched: true
|
|
|
|
}],
|
|
|
|
|
|
|
|
preprocessors: {
|
|
|
|
'./karma-test-shim.js': ['webpack', 'sourcemap']
|
|
|
|
},
|
|
|
|
|
|
|
|
mime: {
|
|
|
|
'text/x-typescript': ['ts','tsx']
|
|
|
|
},
|
|
|
|
|
|
|
|
webpack: webpackConfig,
|
|
|
|
|
|
|
|
webpackMiddleware: {
|
|
|
|
stats: 'errors-only'
|
|
|
|
},
|
|
|
|
|
|
|
|
webpackServer: {
|
|
|
|
noInfo: true
|
|
|
|
},
|
|
|
|
|
|
|
|
browserConsoleLogOptions: {
|
|
|
|
level: 'log',
|
|
|
|
format: '%b %T: %m',
|
|
|
|
terminal: true
|
|
|
|
},
|
|
|
|
|
|
|
|
reporters: ['mocha', 'kjhtml', 'dots'],
|
|
|
|
port: 9876,
|
|
|
|
colors: true,
|
|
|
|
logLevel: config.LOG_INFO,
|
|
|
|
autoWatch: true,
|
2017-08-14 10:42:59 -07:00
|
|
|
browsers: ['PhantomJS'],
|
2017-08-14 08:40:02 -07:00
|
|
|
singleRun: false
|
|
|
|
};
|
|
|
|
|
|
|
|
config.set(_config);
|
|
|
|
};
|