mirror of https://github.com/BTCPrivate/copay.git
49 lines
834 B
JavaScript
49 lines
834 B
JavaScript
|
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,
|
||
|
browsers: ['Chrome'],
|
||
|
singleRun: false
|
||
|
};
|
||
|
|
||
|
config.set(_config);
|
||
|
};
|