-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
53 lines (52 loc) · 1.18 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
42
43
44
45
46
47
48
49
50
51
52
53
const sharedWebpack = require('./webpack.shared');
module.exports = function(config) {
config.set({
basePath: '',
frameworks: ['jasmine'],
files: [
'node_modules/jquery/dist/jquery.js',
'node_modules/angular/angular.js',
'node_modules/angular-mocks/angular-mocks.js',
'node_modules/rx/dist/rx.all.js',
'node_modules/rx-angular/dist/rx.angular.js',
'src/**/*.spec.js'
],
autoWatch: true,
browsers: ['Chrome'],
reporters: ['progress'],
preprocessors: {
'src/**/*.spec.js': ['webpack', 'sourcemap']
},
webpack: {
cache: true,
debug: true,
watch: true,
devtool: 'inline-source-map',
isparta: {
embedSource: true,
noAutoWrap: true,
babel: {
presets: ['es2015']
}
},
module: {
preLoaders: [{
test: /\.js?$/,
exclude: /(node_modules)/,
loader: 'isparta'
}],
loaders: sharedWebpack.loaders
}
},
webpackMiddleware: {
noInfo: true,
stats: {
colors: true
}
},
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
singleRun: false
});
};