-
Notifications
You must be signed in to change notification settings - Fork 42
/
karma.conf.js
47 lines (39 loc) · 989 Bytes
/
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
module.exports = function(config) {
config.set({
basePath: '.',
frameworks: ['jasmine'],
files: [
'node_modules/crossfilter2/crossfilter.min.js',
'node_modules/lodash/lodash.js',
// {pattern: 'main.js', type: 'module'},
'reductio.min.js',
{ pattern: config.grep ? config.grep : 'test/**/*.test.js', type: 'module' },
// 'test/**/*.test.js'
],
browsers: [
// 'Chrome'
// 'ChromeCanary',
// 'Firefox',
'ChromeHeadless'
// 'PhantomJS'
// 'PhantomJS'
],
plugins: [
'karma-jasmine',
'karma-chrome-launcher',
// 'karma-firefox-launcher',
// 'karma-phantomjs-launcher'
],
// reporters: ['dots'],
reporters: ['progress'],
singleRun: true,
concurrency: Infinity,
autoWatch: false,
colors: true,
port: 9876, // karma web server port
captureTimeout: 60000
});
};
// logLevel: config.LOG_INFO,
// browsers: ['ChromeHeadless'],
// // singleRun: false, // Karma captures browsers, runs the tests and exits