react-redux-express
Version:
React fullstack generator with express,redux, and some components.
32 lines (30 loc) • 660 B
JavaScript
/**
* Created by Zhengfeng Yao on 16/8/29.
*/
import webpackConfig from './webpack.config.test';
module.exports = config => {
config.set({
basePath: '../',
browsers: [ 'PhantomJS' ],
files: [
'test/loadClientTests.js'
],
captureTimeout: 60000,
frameworks: [ 'mocha', 'chai' ],
client: {
mocha: {}
},
reporters: [ 'mocha', 'coverage' ],
preprocessors: {
'test/loadClientTests.js': [ 'webpack', 'sourcemap' ]
},
webpack: webpackConfig,
coverageReporter: {
dir: 'coverage/',
reporters: [
{ type: 'html', subdir: '.' },
{ type: 'text' }
]
}
});
}