1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 | var webpackConfig = require('../../build/webpack.test.conf')
|
7 |
|
8 | module.exports = function (config) {
|
9 | config.set({
|
10 |
|
11 |
|
12 |
|
13 |
|
14 | browsers: ['PhantomJS'],
|
15 | frameworks: ['mocha', 'sinon-chai'],
|
16 | reporters: ['spec', 'coverage'],
|
17 | files: ['./index.js'],
|
18 | preprocessors: {
|
19 | './index.js': ['webpack', 'sourcemap']
|
20 | },
|
21 | webpack: webpackConfig,
|
22 | webpackMiddleware: {
|
23 | noInfo: true
|
24 | },
|
25 | coverageReporter: {
|
26 | dir: './coverage',
|
27 | reporters: [
|
28 | { type: 'lcov', subdir: '.' },
|
29 | { type: 'text-summary' }
|
30 | ]
|
31 | }
|
32 | })
|
33 | }
|