forked from google/data-layer-helper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.conf.js
44 lines (44 loc) · 1.3 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
module.exports = function(config) {
config.set({
basePath: '.',
frameworks: ['jasmine'],
files: [
// Closure library
{pattern: 'node_modules/google-closure-library/closure/goog/base.js'},
// Source files
// Dependencies must be listed before the file they are used in for
// the googmodule preprocessor to function properly.
{pattern: 'src/logging.js'},
{pattern: 'src/plain/plain.js'},
{pattern: 'src/helper/utils.js'},
{pattern: 'src/helper/data-layer-helper.js'},
// jQuery
{pattern: 'test/lib/jquery*'},
// Tests
{pattern: 'test/utils.js'},
{pattern: 'test/*_test.js'},
],
preprocessors: {'**/*.js': ['googmodule']},
plugins: [
require('karma-jasmine'),
require('karma-detect-browsers'),
require('karma-chrome-launcher'),
require('karma-firefox-launcher'),
require('karma-ie-launcher'),
require('karma-safari-launcher'),
require('karma-spec-reporter'),
require('karma-jasmine-html-reporter'),
require('karma-googmodule-preprocessor'),
],
browsers: ['Chrome'],
reporters: ['spec', 'kjhtml'],
port: 9876,
colors: true,
autoWatch: true,
client: {
clearContext: false,
},
singleRun: false,
concurrency: Infinity,
});
};