Skip to content

Instantly share code, notes, and snippets.

@zacck-zz
Created August 31, 2016 05:55
Show Gist options
  • Save zacck-zz/9a6f7bcde39a1bbcd924584900828d27 to your computer and use it in GitHub Desktop.
Save zacck-zz/9a6f7bcde39a1bbcd924584900828d27 to your computer and use it in GitHub Desktop.
var webpackConfig = require('./webpack.config.js');
module.exports = function (config) {
config.set({
browsers: ['Chrome'], //browers to use for testng
singleRun: true,
frameworks: ['mocha'], //frameworks used in testing
files: [
'node_modules/script!jquery/dist/jquery.min.js',
'node_modules/script!foundation-sites/dist/foundation.min.js',
'app/tests/**/*.test.jsx'
], //globbing pattern
preprocessors: {
'app/tests/**/*.test.jsx':['webpack', 'sourcemap']
},
reporters: ['mocha'],
client: {
mocha: {
timeout: '5000'
}
},
webpack:webpackConfig,
webpackServer: {
noInfo: true
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment