-
Notifications
You must be signed in to change notification settings - Fork 82
Expand file tree
/
Copy pathkarma.conf.cjs
More file actions
66 lines (60 loc) · 1.8 KB
/
karma.conf.cjs
File metadata and controls
66 lines (60 loc) · 1.8 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
64
65
66
'use strict';
module.exports = function(config) {
config.set({
basePath: '../',
frameworks: ['jasmine'],
files: [
'node_modules/angular/angular.js',
'node_modules/angular-sanitize/angular-sanitize.js',
'node_modules/lodash/lodash.js',
'node_modules/ng-infinite-scroll/build/ng-infinite-scroll.js',
'node_modules/angular-mocks/angular-mocks.js',
'node_modules/angular-messages/angular-messages.js',
'node_modules/angular-elastic/elastic.js',
'node_modules/angular-ui-bootstrap/dist/ui-bootstrap-tpls.js',
'dist/client/forms-angular.js',
'src/client/template/*.html',
'test/example-directives/*.js',
'test/helpers/karma-helpers.js',
'test/unit/**/*.js'
],
autoWatch : true,
usePolling: true,
customLaunchers: {
ChromeHeadless: {
base: 'Chrome',
flags: [
'--headless',
'--disable-gpu',
// Without a remote debugging port, Google Chrome exits immediately.
'--remote-debugging-port=9222'
]
}
},
browsers : ['ChromeHeadless'],
// browsers : ['Firefox', 'ChromeHeadless'],
// use dots reporter, as travis terminal does not support escaping sequences
// possible values: 'dots', 'progress'
// CLI --reporters progress
reporters: ['progress', 'junit'],
junitReporter: {
outputDir: 'test_out',
outputFile: 'test_out/unit.xml',
suite: 'unit'
},
plugins: [
'karma-jasmine',
'karma-chrome-launcher',
'karma-firefox-launcher',
'karma-ng-html2js-preprocessor',
'karma-junit-reporter'
],
ngHtml2JsPreprocessor: {
// strip this from the file path
stripPrefix: 'src/client/'
},
preprocessors: {
'src/client/template/*.html': 'ng-html2js'
}
});
};