-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathkarma.conf.js
47 lines (41 loc) · 1.22 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
/* global process */
// Karma configuration
module.exports = function(config) {
var coverage = !!process.env.COVERAGE;
config.set({
frameworks: ['custom'],
files: [
'node_modules/google-closure-library/closure/goog/base.js',
'tests/test_dependency_map.js',
'tests/test_requires_and_utils.js',
process.env.FILE || 'tests/*.js',
'jsunitAdapter.js',
'msg/js/en_us.js',
{
pattern: 'node_modules/google-closure-library/**/*.js',
watched: false,
included: false
},
{pattern: 'core/**/*.js', included: false},
{pattern: 'blocks/**/*.js', included: false},
{pattern: 'generators/**/*.js', included: false}
],
exclude: ['tests/playground_requires.js'],
preprocessors: coverage
? {
'core/**/*.js': ['coverage'],
'blocks/**/*.js': ['coverage'],
'generators/**/*.js': ['coverage']
}
: {},
reporters: coverage ? ['progress', 'coverage'] : ['progress'],
coverageReporter: {
reporters: [{type: 'html', subdir: '.'}, {type: 'lcovonly', subdir: '.'}]
},
logLevel: config.LOG_WARN,
browsers: ['ChromeHeadless'],
client: {
captureConsole: false
}
});
};