Completed
Push — master ( d5ffb5...8c40a0 )
by Ajeh
43s
created

module.exports   B

Complexity

Conditions 1
Paths 1

Size

Total Lines 31

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
nc 1
dl 0
loc 31
rs 8.8571
nop 1
1
/**
2
 * Created by Emmy on 10/10/2017.
3
 */
4
5
//  This is a karma config file. For more details see
6
//  http://karma-runner.github.io/0.13/config/configuration-file.html
7
//  we are also using it with karma-webpack
8
//  https://github.com/webpack/karma-webpack
9
10
const webpackConfig = require('../../webpack.test.config')
11
12
module.exports = function (config) {
13
    config.set({
14
        // to run in additional browsers:
15
        // 1. install corresponding karma launcher
16
        //    http://karma-runner.github.io/0.13/config/browsers.html
17
        // 2. add it to the `browsers` array below.
18
        browsers: [
19
            // 'Chrome',
20
            'PhantomJS'
21
        ],
22
        frameworks: ['mocha'],
23
        // frameworks: ['mocha', 'sinon-chai', 'phantomjs-shim'],
24
        // reporters: ['spec', 'coverage'],
25
        files: ['specs/**/*.spec.js'],
26
        preprocessors: {
27
            // './index.js': ['webpack', 'sourcemap']
28
            './specs/**/*.spec.js': ['webpack']
29
        },
30
        webpack: webpackConfig,
31
        webpackMiddleware: {
32
            noInfo: true
33
        }
34
        // coverageReporter: {
35
        //     dir: './coverage',
36
        //     reporters: [
37
        //         {type: 'lcov', subdir: '.'},
38
        //         {type: 'text-summary'}
39
        //     ]
40
        // }
41
    })
42
}
43