forked from FormidableLabs/radon-select
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.conf.js
68 lines (66 loc) · 1.47 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
'use strict';
var path = require('path');
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['mocha', 'sinon-chai', 'phantomjs-shim'],
files: [
'test/helpers/**/*.js',
'test/spec/**/*.js'
],
preprocessors: {
'test/spec/**/*.js': ['webpack']
},
webpack: {
cache: true,
module: {
preLoaders: [{
test: /\.jsx$/,
loader: 'babel-loader',
include: path.resolve('test')
}],
loaders: [{
test: /\.jsx$/,
loader: 'babel-loader',
exclude: [/node_modules/]
}]
},
resolve: {
root: [path.join(__dirname, '/src')],
modulesDirectories: ['node_modules', 'modules'],
extensions: ['', '.js', '.jsx']
}
},
webpackServer: {
quiet: false,
noInfo: true,
stats: {
assets: false,
colors: true,
version: false,
hash: false,
timings: false,
chunks: false,
chunkModules: false
}
},
exclude: [],
port: 8080,
logLevel: config.LOG_INFO,
browserNoActivityTimeout: 60000,
colors: true,
autoWatch: false,
browsers: ['PhantomJS'],
reporters: ['mocha'],
plugins: [
'karma-mocha',
'karma-mocha-reporter',
'karma-phantomjs-shim',
'karma-phantomjs-launcher',
'karma-sinon-chai',
'karma-webpack'
],
captureTimeout: 100000,
singleRun: true
});
};