-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathkarma.config.js
43 lines (42 loc) · 1.06 KB
/
karma.config.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
var webpack = require('karma-webpack');
module.exports = function (config) {
config.set({
singleRun: true,
frameworks: ['jasmine'],
files: [
'tests/**/*.spec.js'
],
plugins: [
webpack,
'karma-jasmine',
'karma-chrome-launcher',
'karma-firefox-launcher',
'karma-ie-launcher',
'karma-spec-reporter'
],
reporters: ['spec'],
browsers: [
'Chrome',
'Firefox',
'IE',
'IE10',
'IE9'
],
customLaunchers: {
IE10: {
base: 'IE',
'x-ua-compatible': 'IE=EmulateIE10'
},
IE9: {
base: 'IE',
'x-ua-compatible': 'IE=EmulateIE9'
}
},
preprocessors: {
'tests/**/*.spec.js': ['webpack'],
'src/**/*.js': ['webpack']
},
webpack: require('./dev/builds').general,
webpackMiddleware: { noInfo: true }
});
};