blob: 1f2613a34697141ad86cc33e6a286b7173f27824 [file] [log] [blame]
Michael Landoed64b5e2017-06-09 03:19:04 +03001// Karma configuration file, see link for more information
2// https://karma-runner.github.io/0.13/config/configuration-file.html
3
4module.exports = function (config) {
5 config.set({
6 basePath: '',
7 frameworks: ['jasmine', 'angular-cli'],
8 plugins: [
9 require('karma-jasmine'),
10 require('karma-chrome-launcher'),
11 require('karma-remap-istanbul'),
12 require('angular-cli/plugins/karma')
13 ],
14 files: [
15 { pattern: './src/test.ts', watched: false }
16 ],
17 preprocessors: {
18 './src/test.ts': ['angular-cli']
19 },
20 mime: {
21 'text/x-typescript': ['ts','tsx']
22 },
23 remapIstanbulReporter: {
24 reports: {
25 html: 'coverage',
26 lcovonly: './coverage/coverage.lcov'
27 }
28 },
29 angularCli: {
30 config: './angular-cli.json',
31 environment: 'dev'
32 },
33 reporters: config.angularCli && config.angularCli.codeCoverage
34 ? ['progress', 'karma-remap-istanbul']
35 : ['progress'],
36 port: 9876,
37 colors: true,
38 logLevel: config.LOG_INFO,
39 autoWatch: true,
40 browsers: ['Chrome'],
41 singleRun: false
42 });
43};