forked from krux/postscribe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma-base.config.babel.js
72 lines (52 loc) · 1.2 KB
/
karma-base.config.babel.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
69
70
71
72
/* eslint-env node */
import pkg from '../package.json';
import webpackConfig from '../webpack.config.babel.js';
import webpack from 'webpack';
export default {
basePath: '',
browserDisconnectTimeout: 20000, // ms
browserDisconnectTolerance: 2, // times
browserNoActivityTimeout: 60000, // ms
frameworks: [
'expect',
'mocha',
'sinon'
],
files: [
'../node_modules/jquery/dist/jquery.js',
'**/*.spec.js',
{pattern: 'remote/*.js', watched: true, included: false, served: true}
],
exclude: [],
preprocessors: {
'*.js': ['webpack', 'sourcemap'],
'unit/**/*.js': ['webpack', 'sourcemap'],
'bugs/**/*.js': ['webpack', 'sourcemap']
},
// generate_expected breaks the path a bit b/c it's writing relative to itself.
// remap it here to avoid 404s
proxies: {
'/remote/': '/base/remote/'
},
babelPreprocessor: {
options: pkg.babel
},
reporters: [
'mocha'
],
port: 9876,
colors: true,
logLevel: 'info',
autoWatch: false,
browsers: [
'PhantomJS'
],
singleRun: true,
webpack: Object.assign(webpackConfig, {
devtool: 'inline-source-map'
}),
webpackMiddleware: {
noInfo: true
},
concurrency: Infinity
};