forked from celsomarques/ionic-datepicker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkarma.conf.js
More file actions
63 lines (55 loc) · 1.5 KB
/
karma.conf.js
File metadata and controls
63 lines (55 loc) · 1.5 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
58
59
60
61
62
63
module.exports = function(config) {
config.set({
basePath: '',
// frameworks to use
frameworks: [ 'mocha', 'sinon-chai', 'chai' ],
files: [
'./bower_components/jquery/dist/jquery.js',
'./bower_components/angular/angular.js',
'./bower_components/angular-animate/angular-animate.js',
'./bower_components/angular-sanitize/angular-sanitize.js',
'./bower_components/angular-ui-router/release/angular-ui-router.js',
'./bower_components/ionic/js/ionic.js',
'./bower_components/ionic/js/ionic-angular.js',
'./bower_components/angular-mocks/angular-mocks.js',
'./dist/**/!(*.min).js',
'spec/**/*'
],
exclude: [
],
plugins: [
'karma-coverage',
'karma-mocha',
'karma-chai',
'karma-sinon-chai',
'karma-chrome-launcher'
],
reporters: [ 'progress', 'coverage' ],
port: 9876,
runnerPort: 9100,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
captureTimeout: 60000,
singleRun: false,
ngHtml2JsPreprocessor: {
stripPrefix: './src/*.html',
prependPrefix: './dist/',
moduleName: 'ionic-datepicker.templates'
},
coverageReporter: {
dir: './coverage/',
reporters: [
{ type: 'html' },
{ type: 'lcov' },
{ type: 'text-summary' },
{ type: 'lcovonly' }
]
},
preprocessors: {
'./src/*.html': [ 'ng-html2js' ],
'./dist/!(*.min).js': [ 'coverage' ]
}
});
};