mirror of
https://github.com/wassname/react-webpack-template.git
synced 2026-06-27 20:53:15 +08:00
27 lines
531 B
JavaScript
27 lines
531 B
JavaScript
var webpackCfg = require('./webpack.config');
|
|
|
|
module.exports = function(config) {
|
|
config.set({
|
|
basePath: '',
|
|
browsers: ['PhantomJS'],
|
|
files: [
|
|
'test/loadtests.js'
|
|
],
|
|
port: 8080,
|
|
captureTimeout: 60000,
|
|
frameworks: ['phantomjs-shim', 'mocha', 'chai'],
|
|
client: {
|
|
mocha: {}
|
|
},
|
|
singleRun: true,
|
|
reporters: ['mocha'],
|
|
preprocessors: {
|
|
'test/loadtests.js': ['webpack', 'sourcemap']
|
|
},
|
|
webpack: webpackCfg,
|
|
webpackServer: {
|
|
noInfo: true
|
|
}
|
|
});
|
|
};
|