UNPKG

cruk-searchkit

Version:

Set of overriden and new searchkit components designed specifically for Cancer Research UK

44 lines (41 loc) 1.25 kB
var webpackConfig = require('./webpack.test.config'); webpackConfig.devtool = 'inline-source-map'; module.exports = function (config) { var karmaConfiguration = { browsers: ['Chrome_without_security', 'PhantomJS'], // you can define custom flags customLaunchers: { Chrome_without_security: { base: 'Chrome', flags: ['--disable-web-security', '--no-sandbox'] } }, files: [ 'https://maps.googleapis.com/maps/api/js?libraries=places&key=AIzaSyA46fPfmcYux_82Keez7rrpksTTDLvjEAs', './node_modules/phantomjs-polyfill-object-assign/object-assign-polyfill.js', 'webpack.tests.js' ], frameworks: [ 'jasmine' ], plugins: [ 'karma-phantomjs-launcher', 'karma-chrome-launcher', 'karma-jasmine', 'karma-sourcemap-loader', 'karma-webpack', 'karma-mocha-reporter', ], // run the bundle through the webpack and sourcemap plugins preprocessors: { 'webpack.tests.js': [ 'webpack', 'sourcemap' ] }, reporters: [ 'mocha' ], singleRun: true, // webpack config object webpack: webpackConfig, webpackMiddleware: { noInfo: true, }, concurrency: Infinity }; config.set(karmaConfiguration); };