2017-10-01 20:02:25 +02:00
|
|
|
var webpack = require('webpack');
|
|
|
|
var path = require('path');
|
|
|
|
var webpackTestConfig = require('./scripts/webpack/webpack.test.js');
|
|
|
|
|
2014-01-01 18:40:25 +01:00
|
|
|
module.exports = function(config) {
|
2017-10-01 20:02:25 +02:00
|
|
|
|
2014-04-06 10:47:14 +02:00
|
|
|
'use strict';
|
|
|
|
|
2014-01-01 18:40:25 +01:00
|
|
|
config.set({
|
2015-12-21 11:10:16 +01:00
|
|
|
frameworks: ['mocha', 'expect', 'sinon'],
|
2014-01-01 18:40:25 +01:00
|
|
|
|
|
|
|
// list of files / patterns to load in the browser
|
|
|
|
files: [
|
2017-10-01 20:35:01 +02:00
|
|
|
{ pattern: 'public/test/index.ts', watched: false }
|
2014-01-01 18:40:25 +01:00
|
|
|
],
|
|
|
|
|
2017-10-01 20:02:25 +02:00
|
|
|
preprocessors: {
|
|
|
|
'public/test/index.ts': ['webpack', 'sourcemap'],
|
|
|
|
},
|
|
|
|
|
|
|
|
webpack: webpackTestConfig,
|
|
|
|
webpackServer: {
|
|
|
|
noInfo: true, // please don't spam the console when running in karma!
|
|
|
|
},
|
|
|
|
|
2014-01-01 18:40:25 +01:00
|
|
|
// list of files to exclude
|
2014-03-22 13:45:02 +01:00
|
|
|
exclude: [],
|
2014-08-06 15:57:40 +02:00
|
|
|
reporters: ['dots'],
|
2014-01-01 18:40:25 +01:00
|
|
|
port: 9876,
|
|
|
|
colors: true,
|
|
|
|
logLevel: config.LOG_INFO,
|
|
|
|
autoWatch: true,
|
2014-08-07 14:58:57 +02:00
|
|
|
browsers: ['PhantomJS'],
|
2016-04-09 17:09:55 +01:00
|
|
|
captureTimeout: 20000,
|
2014-08-07 14:58:57 +02:00
|
|
|
singleRun: true,
|
2017-10-01 20:02:25 +02:00
|
|
|
// autoWatchBatchDelay: 1000,
|
|
|
|
// browserNoActivityTimeout: 60000,
|
2014-01-01 18:40:25 +01:00
|
|
|
});
|
2015-09-11 08:00:13 +02:00
|
|
|
|
2014-01-01 18:40:25 +01:00
|
|
|
};
|