-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkarma.conf.js
More file actions
51 lines (45 loc) · 976 Bytes
/
karma.conf.js
File metadata and controls
51 lines (45 loc) · 976 Bytes
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
var webpack = require('webpack');
var webpackConfig = require('./gulpfile.webpack.js')();
module.exports = function(config) {
config.set({
browsers: ['PhantomJS'],
// you can define custom flags
customLaunchers: {
'PhantomJS_custom': {
base: 'PhantomJS',
options: {
windowName: 'my-window',
settings: {
webSecurityEnabled: false
},
},
flags: ['--load-images=true'],
debug: true
}
},
logLevel: config.LOG_ERROR,
phantomjsLauncher: {
exitOnResourceError: true
},
frameworks: ['jasmine'],
files: [
'node_modules/babel-polyfill/dist/polyfill.js',
'src/*.test.js',
'src/**/*.test.js',
'widgets/**/*.test.js',
],
preprocessors: {
'src/*.test.js': ['webpack'],
'src/**/*.test.js': ['webpack'],
'widgets/**/*.test.js': ['webpack'],
},
webpack: {
module: webpackConfig.module
},
plugins: [
'karma-jasmine',
'karma-phantomjs-launcher',
'karma-webpack'
]
});
};