forked from skynode/groundwork.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.conf.js
51 lines (48 loc) · 978 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
48
49
50
51
'use strict';
const argv = require('yargs').argv;
const webpackConfig = require('./webpack.config');
let singleRun = true;
if (typeof argv.watch !== 'undefined') {
singleRun = !argv.watch;
}
module.exports = (config) => {
config.set({
browsers: [
'Chrome'
],
files: [
'node_modules/babel-polyfill/dist/polyfill.js',
'karma.tests.js'
],
frameworks: [
'jasmine-ajax',
'jasmine'
],
plugins: [
'karma-chrome-launcher',
'karma-eslint',
'karma-firefox-launcher',
'karma-jasmine',
'karma-jasmine-ajax',
'karma-jsdom-launcher',
'karma-safari-launcher',
'karma-spec-reporter',
'karma-sourcemap-loader',
'karma-webpack'
],
preprocessors: {
'karma.tests.js': [
'webpack',
'sourcemap'
]
},
reporters: [
'dots'
],
singleRun,
webpack: webpackConfig,
webpackServer: {
noInfo: true
}
});
};