2016-12-28 15:57:16 -05:00
|
|
|
module.exports = function (config)
|
|
|
|
{
|
|
|
|
config.set({
|
|
|
|
basePath: '',
|
2016-12-31 14:50:40 -05:00
|
|
|
frameworks: ['jasmine', 'karma-typescript'],
|
|
|
|
|
2016-12-28 16:57:40 -05:00
|
|
|
files: [
|
2016-12-31 14:50:40 -05:00
|
|
|
'./src/**/*.spec.ts'
|
|
|
|
],
|
|
|
|
|
|
|
|
exclude: [
|
2016-12-28 15:57:16 -05:00
|
|
|
],
|
2016-12-31 14:50:40 -05:00
|
|
|
|
2016-12-28 15:57:16 -05:00
|
|
|
preprocessors: {
|
2016-12-31 14:50:40 -05:00
|
|
|
'./src/**/*.spec.ts': ['karma-typescript']
|
2016-12-28 15:57:16 -05:00
|
|
|
},
|
2016-12-31 14:50:40 -05:00
|
|
|
|
|
|
|
typescriptPreprocessor: {
|
|
|
|
options: {
|
|
|
|
sourceMap: false,
|
|
|
|
target: 'ES5',
|
|
|
|
module: 'amd',
|
|
|
|
noImplicitAny: true,
|
|
|
|
noResolve: true,
|
|
|
|
removeComments: true,
|
|
|
|
concatenateOutput: false
|
|
|
|
},
|
|
|
|
transformPath: function (path)
|
|
|
|
{
|
|
|
|
return path.replace(/\.ts$/, '.js');
|
2016-12-28 15:57:16 -05:00
|
|
|
}
|
|
|
|
},
|
2016-12-31 14:50:40 -05:00
|
|
|
reporters: ['progress', 'karma-typescript'],
|
2016-12-28 15:57:16 -05:00
|
|
|
port: 9876,
|
|
|
|
colors: true,
|
2016-12-31 14:50:40 -05:00
|
|
|
logLevel: config.LOG_DEBUG,
|
2016-12-28 15:57:16 -05:00
|
|
|
autoWatch: true,
|
|
|
|
browsers: ['Chrome'],
|
2016-12-31 14:50:40 -05:00
|
|
|
singleRun: false,
|
|
|
|
concurrency: Infinity
|
|
|
|
})
|
|
|
|
}
|