-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathkarma.conf.js
More file actions
57 lines (53 loc) · 1.64 KB
/
Copy pathkarma.conf.js
File metadata and controls
57 lines (53 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// Karma configuration
// Generated on Wed Apr 19 2017 17:18:14 GMT+0530 (India Standard Time)
module.exports = function(config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',
plugins: [
require('karma-jasmine'),
require('karma-chrome-launcher'),
//require('karma-coverage-istanbul-reporter'),
require('@angular/cli/plugins/karma'),
require('karma-requirejs'),
require('karma-es6-shim')
],
frameworks: ['jasmine', '@angular/cli','requirejs', 'es6-shim'],
files: [
'./node_modules/requirejs/require.js',
'./node_modules/karma-es6-shim/lib/index.js',
// './node_modules/karma-requirejs/lib/index.js',
// './node_modules/karma-requirejs/lib/adapter.js',
{ pattern: './src/app/*.ts', included: false },
{ pattern: './src/test.ts', included: false },
{ pattern: './src/app/**/*.ts', watched: false }
],
exclude: [
],
preprocessors: {
'./src/test.ts': ['@angular/cli']
},
mime: {
'text/x-typescript': ['ts','tsx']
},
angularCli: {
config: './angular-cli.json',
environment: 'dev'
},
coverageIstanbulReporter: {
reports: [ 'html', 'lcovonly' ],
// base output directory
dir: './temp',
fixWebpackSourcePaths: true
},
reporters: config.angularCli && config.angularCli.codeCoverage
? ['progress', 'coverage-istanbul']
: ['progress'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
singleRun: true
})
}