Example of configuration file karma.conf.ts

This commit is contained in:
Tanguy Krotoff
2015-10-27 15:10:06 +01:00
parent 94da2ce044
commit 21afe00c53
+40
View File
@@ -52,3 +52,43 @@ karma.runner.run({port: 9876}, function(exitCode: number) {
//
var captured: boolean = karma.launcher.areAllCaptured();
// Example of configuration file karma.conf.ts, see http://karma-runner.github.io/0.13/config/configuration-file.html
module.exports = function(config: karma.Config) {
config.set({
basePath: '..',
urlRoot: '/base/',
frameworks: ['jasmine'],
files: [
'file1.js',
'file2.js',
'file3.js',
{
pattern: '**/*.html',
included: false
}
],
reporters: [
'progress',
'coverage'
],
preprocessors: {
'app.js': ['coverage']
},
port: 9876,
autoWatch: true,
browsers: [
'Chrome',
'Firefox'
],
singleRun: true
});
};