2017-10-01 13:02:25 -05:00
|
|
|
var webpack = require('webpack');
|
|
|
|
var path = require('path');
|
|
|
|
var webpackTestConfig = require('./scripts/webpack/webpack.test.js');
|
|
|
|
|
2014-01-01 11:40:25 -06:00
|
|
|
module.exports = function(config) {
|
2017-10-01 13:02:25 -05:00
|
|
|
|
2014-04-06 03:47:14 -05:00
|
|
|
'use strict';
|
|
|
|
|
2014-01-01 11:40:25 -06:00
|
|
|
config.set({
|
2015-12-21 04:10:16 -06:00
|
|
|
frameworks: ['mocha', 'expect', 'sinon'],
|
2014-01-01 11:40:25 -06:00
|
|
|
|
|
|
|
// list of files / patterns to load in the browser
|
|
|
|
files: [
|
2017-10-01 13:35:01 -05:00
|
|
|
{ pattern: 'public/test/index.ts', watched: false }
|
2014-01-01 11:40:25 -06:00
|
|
|
],
|
|
|
|
|
2017-10-01 13:02:25 -05: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 11:40:25 -06:00
|
|
|
// list of files to exclude
|
2014-03-22 07:45:02 -05:00
|
|
|
exclude: [],
|
2014-08-06 08:57:40 -05:00
|
|
|
reporters: ['dots'],
|
2014-01-01 11:40:25 -06:00
|
|
|
port: 9876,
|
|
|
|
colors: true,
|
|
|
|
logLevel: config.LOG_INFO,
|
|
|
|
autoWatch: true,
|
2014-08-07 07:58:57 -05:00
|
|
|
browsers: ['PhantomJS'],
|
2016-04-09 11:09:55 -05:00
|
|
|
captureTimeout: 20000,
|
2014-08-07 07:58:57 -05:00
|
|
|
singleRun: true,
|
2017-10-01 13:02:25 -05:00
|
|
|
// autoWatchBatchDelay: 1000,
|
|
|
|
// browserNoActivityTimeout: 60000,
|
2014-01-01 11:40:25 -06:00
|
|
|
});
|
2015-09-11 01:00:13 -05:00
|
|
|
|
2014-01-01 11:40:25 -06:00
|
|
|
};
|