-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathkarma.conf.js
41 lines (40 loc) · 1.1 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
var webpackConfig = require('./webpack/webpack.config.js');
module.exports = function (config) {
var configObject = {
frameworks: ['jasmine'],
basePath: '',
files: [
'node_modules/polyfill-function-prototype-bind/bind.js',
'node_modules/es6-promise/dist/es6-promise.js',
'src/modules/grid-spec-helper/matchers.js',
'webpack/test-entry.js',
],
preprocessors: {
'webpack/test-entry.js': ['webpack', 'sourcemap'],
'src/modules/grid-spec-helper/matchers.js': ['webpack', 'sourcemap'],
},
webpackMiddleware: {
noInfo: true,
},
autoWatch: true,
reporters: ['progress'],
browsers: ['ChromeHeadlessNoSandbox'],
customLaunchers: {
ChromeHeadlessNoSandbox: {
base: 'ChromeHeadless',
flags: ['--no-sandbox'],
},
},
junitReporter: {
outputFile: 'test_out/unit.xml',
suite: 'unit',
},
notifyReporter: {
reportSuccess: false,
},
browserNoActivityTimeout: 3000000,
reportSlowerThan: 250,
webpack: require('./webpack/webpack.test'),
};
config.set(configObject);
};