@@ -8,58 +8,53 @@ import KarmaPhantomjsLauncher from 'karma-phantomjs-launcher';
8
8
import webpackConfig from './webpack.config.test.babel' ;
9
9
10
10
export default function setConfig ( config ) {
11
- config . set ( {
12
- browsers : [ 'PhantomJS' ] ,
13
- frameworks : [ 'jasmine' ] ,
14
- files : [ 'src/tests.js' ] ,
15
- preprocessors : {
16
- 'src/tests.js' : [ 'webpack' , 'sourcemap' ]
17
- } ,
18
- plugins : [
19
- KarmaJasmine ,
20
- KarmaWebpack ,
21
- KarmaJasmineDiffReporter ,
22
- KarmaJasmineHtmlReporter ,
23
- KarmaNotifyReporter ,
24
- KarmaSourcemapLoader ,
25
- KarmaPhantomjsLauncher ,
26
- ] ,
27
- reporters : [
28
- 'jasmine-diff' ,
29
- 'progress' ,
30
- 'kjhtml' ,
31
- 'notify' ,
32
- ] ,
33
- jasmineDiffReporter : {
34
- pretty : 4 ,
35
- json : true ,
36
- multiline : {
37
- before : 2 , // 2 newlines
38
- after : 2 , // 2 newlines
39
- indent : 4 , // 4 spaces
40
- } ,
41
- color : {
42
- actualFg : 'red' ,
43
- expectedFg : 'green' ,
44
- actualBg : 'inverse' ,
45
- expectedBg : 'inverse' ,
46
- actualWhitespaceBg : '' ,
47
- expectedWhitespaceBg : '' ,
48
- } ,
49
- } ,
50
- webpack : webpackConfig ,
51
- webpackMiddleware : {
52
- stats : {
53
- chunks : false ,
54
- hash : false ,
55
- version : false ,
56
- assets : false ,
57
- children : false ,
58
- } ,
59
- } ,
60
- notifyReporter : {
61
- reportEachFailure : false , // Default: false, Will notify on every failed spec
62
- reportSuccess : false , // Default: true, Will notify when a suite was successful
63
- } ,
64
- } ) ;
11
+ config . set ( {
12
+ browsers : [ 'PhantomJS' ] ,
13
+ frameworks : [ 'jasmine' ] ,
14
+ files : [ 'src/tests.js' ] ,
15
+ preprocessors : {
16
+ 'src/tests.js' : [ 'webpack' , 'sourcemap' ] ,
17
+ } ,
18
+ plugins : [
19
+ KarmaJasmine ,
20
+ KarmaWebpack ,
21
+ KarmaJasmineDiffReporter ,
22
+ KarmaJasmineHtmlReporter ,
23
+ KarmaNotifyReporter ,
24
+ KarmaSourcemapLoader ,
25
+ KarmaPhantomjsLauncher ,
26
+ ] ,
27
+ reporters : [ 'jasmine-diff' , 'progress' , 'kjhtml' , 'notify' ] ,
28
+ jasmineDiffReporter : {
29
+ pretty : 4 ,
30
+ json : true ,
31
+ multiline : {
32
+ before : 2 , // 2 newlines
33
+ after : 2 , // 2 newlines
34
+ indent : 4 , // 4 spaces
35
+ } ,
36
+ color : {
37
+ actualFg : 'red' ,
38
+ expectedFg : 'green' ,
39
+ actualBg : 'inverse' ,
40
+ expectedBg : 'inverse' ,
41
+ actualWhitespaceBg : '' ,
42
+ expectedWhitespaceBg : '' ,
43
+ } ,
44
+ } ,
45
+ webpack : webpackConfig ,
46
+ webpackMiddleware : {
47
+ stats : {
48
+ chunks : false ,
49
+ hash : false ,
50
+ version : false ,
51
+ assets : false ,
52
+ children : false ,
53
+ } ,
54
+ } ,
55
+ notifyReporter : {
56
+ reportEachFailure : false , // Default: false, Will notify on every failed spec
57
+ reportSuccess : false , // Default: true, Will notify when a suite was successful
58
+ } ,
59
+ } ) ;
65
60
}
0 commit comments