UNPKG

react-flex-layout

Version:
30 lines (28 loc) 999 B
var webpack = require('webpack'); module.exports = function (config) { config.set({ browsers: [ 'PhantomJS' ], singleRun: true, //just run once by default frameworks: [ 'mocha' ], //use the mocha test framework files: [ 'tests.webpack.js' //just load this file ], preprocessors: { 'tests.webpack.js': [ 'webpack' ] //preprocess with webpack }, reporters: [ 'dots' ], //report results in this format webpack: { //kind of a copy of your webpack config devtool: 'inline-source-map', //just do inline source maps instead of the default module: { loaders: [ { test: /\.js$/, exclude: /node_modules/, loader: 'babel-loader?optional=runtime'}, { test: /\.jsx$/, exclude: /node_modules/, loader: 'babel-loader?optional=runtime'}, { test: /\.css$/, loader: 'style!css' } ] } }, webpackServer: { noInfo: true //please don't spam the console when running in karma! } }); };