Mercurial > hg > ugly-duckling
comparison karma.conf.js @ 256:6d128e43f4d5
Merge remote-tracking branch 'lucas/feature/determinate-spinner'
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Fri, 28 Apr 2017 09:23:57 +0100 |
parents | 53ea6406d601 |
children |
comparison
equal
deleted
inserted
replaced
222:990b0fc68653 | 256:6d128e43f4d5 |
---|---|
2 // https://karma-runner.github.io/0.13/config/configuration-file.html | 2 // https://karma-runner.github.io/0.13/config/configuration-file.html |
3 | 3 |
4 module.exports = function (config) { | 4 module.exports = function (config) { |
5 config.set({ | 5 config.set({ |
6 basePath: '', | 6 basePath: '', |
7 frameworks: ['jasmine', 'angular-cli'], | 7 frameworks: ['jasmine', '@angular/cli'], |
8 plugins: [ | 8 plugins: [ |
9 require('karma-jasmine'), | 9 require('karma-jasmine'), |
10 require('karma-chrome-launcher'), | 10 require('karma-chrome-launcher'), |
11 require('karma-remap-istanbul'), | 11 require('karma-jasmine-html-reporter'), |
12 require('angular-cli/plugins/karma') | 12 require('karma-coverage-istanbul-reporter'), |
13 require('@angular/cli/plugins/karma') | |
13 ], | 14 ], |
15 client:{ | |
16 clearContext: false // leave Jasmine Spec Runner output visible in browser | |
17 }, | |
14 files: [ | 18 files: [ |
15 { pattern: './src/test.ts', watched: false } | 19 { pattern: './src/test.ts', watched: false } |
16 ], | 20 ], |
17 preprocessors: { | 21 preprocessors: { |
18 './src/test.ts': ['angular-cli'] | 22 './src/test.ts': ['@angular/cli'] |
19 }, | 23 }, |
20 mime: { | 24 mime: { |
21 'text/x-typescript': ['ts','tsx'] | 25 'text/x-typescript': ['ts','tsx'] |
22 }, | 26 }, |
23 remapIstanbulReporter: { | 27 coverageIstanbulReporter: { |
24 reports: { | 28 reports: [ 'html', 'lcovonly' ], |
25 html: 'coverage', | 29 fixWebpackSourcePaths: true |
26 lcovonly: './coverage/coverage.lcov' | |
27 } | |
28 }, | 30 }, |
29 angularCli: { | 31 angularCli: { |
30 config: './angular-cli.json', | |
31 environment: 'dev' | 32 environment: 'dev' |
32 }, | 33 }, |
33 reporters: config.angularCli && config.angularCli.codeCoverage | 34 reporters: config.angularCli && config.angularCli.codeCoverage |
34 ? ['progress', 'karma-remap-istanbul'] | 35 ? ['progress', 'coverage-istanbul'] |
35 : ['progress'], | 36 : ['progress', 'kjhtml'], |
36 port: 9876, | 37 port: 9876, |
37 colors: true, | 38 colors: true, |
38 logLevel: config.LOG_INFO, | 39 logLevel: config.LOG_INFO, |
39 autoWatch: true, | 40 autoWatch: true, |
40 browsers: ['Chrome'], | 41 browsers: ['Chrome'], |