1 | module.exports = function(config) {
|
2 | config.set({
|
3 | // base path, that will be used to resolve files and exclude
|
4 | basePath: '',
|
5 |
|
6 | // frameworks to use
|
7 | frameworks: ['jasmine'],
|
8 |
|
9 | preprocessors: {
|
10 | '*.ts': ['typescript']
|
11 | },
|
12 |
|
13 | typescriptPreprocessor: {
|
14 | options: {
|
15 | sourceMap: true
|
16 | }
|
17 | },
|
18 |
|
19 | files: ['*.ts'],
|
20 |
|
21 | // list of files to exclude
|
22 | exclude: [],
|
23 |
|
24 | // test results reporter to use
|
25 | // possible values: 'dots', 'progress', 'junit', 'growl', 'coverage'
|
26 | reporters: ['dots'],
|
27 |
|
28 | // web server port
|
29 | port: 9873,
|
30 |
|
31 | // enable / disable colors in the output (reporters and logs)
|
32 | colors: true,
|
33 |
|
34 | // level of logging
|
35 | // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
|
36 | logLevel: config.LOG_DEBUG,
|
37 |
|
38 | // enable / disable watching file and executing tests whenever any file changes
|
39 | autoWatch: false,
|
40 |
|
41 | // Start these browsers, currently available:
|
42 | // - Chrome
|
43 | // - ChromeCanary
|
44 | // - Firefox
|
45 | // - Opera
|
46 | // - Safari (only Mac)
|
47 | // - PhantomJS
|
48 | // - IE (only Windows)
|
49 | browsers: ['PhantomJS'],
|
50 |
|
51 | // If browser does not capture in given timeout [ms], kill it
|
52 | captureTimeout: 60000,
|
53 |
|
54 | // Continuous Integration mode
|
55 | // if true, it capture browsers, run tests and exit
|
56 | singleRun: true,
|
57 |
|
58 | plugins: [
|
59 | 'karma-jasmine',
|
60 | 'karma-chrome-launcher',
|
61 | 'karma-phantomjs-launcher',
|
62 | require('../index.js')
|
63 | ]
|
64 | });
|
65 | };
|