-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.conf.js
54 lines (44 loc) · 1.75 KB
/
karma.conf.js
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
// Tests exist alongside the component they are testing with no separate test directory required;
// the build process should be sophisticated enough to handle this.
// via https://github.com/ngbp/ng-boilerplate#philosophy
module.exports = function (config) {
var cfg = {
bowerComponents : 'app/bower_components'
};
config.set({
basePath: '',
frameworks: ['jasmine'],
// files to load in the browser
files: [
// components
cfg.bowerComponents + '/jquery/jquery.js',
cfg.bowerComponents + '/jasmine-jquery/lib/jasmine-jquery.js',
cfg.bowerComponents + '/angular/angular.js',
cfg.bowerComponents + '/angular-route/angular-route.js',
cfg.bowerComponents + '/angular-mocks/angular-mocks.js',
cfg.bowerComponents + '/angular-sanitize/angular-sanitize.js',
'app/js/app.js',
'app/js/**/*.js'
],
// files to exclude
exclude: [
'app/**/e2e/*.js'
],
// generate js files from html templates to expose them during testing
preprocessors: {
'**/*.html': 'ng-html2js'
},
// https://github.com/karma-runner/karma-ng-html2js-preprocessor#configuration
ngHtml2JsPreprocessor: {
// setting this option will create only a single module that contains templates
// from all the files, so you can load them all with module('foo')
//moduleName: 'hippo.templates'
},
// level of logging
// possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG
logLevel: config.LOG_INFO,
port: 9876,
browsers: ['PhantomJS'],
reporters: 'dots'
});
};