UNPKG

kick

Version:

Kickstarter and generator for AngularJS based on ES6, webpack and best practices

63 lines (49 loc) 1.2 kB
const webpackConfig = require('./webpack.config'); const karmaWebpack = require('karma-webpack'); // Remove entry and output to allow testing /* eslint-disable prefer-reflect */ delete webpackConfig.entry; delete webpackConfig.output; module.exports = (config) => { config.set({ basePath: '', plugins: [ karmaWebpack, 'karma-jasmine', 'karma-osx-reporter', 'karma-clear-screen-reporter', 'karma-mocha-reporter', 'karma-chrome-launcher', 'karma-sourcemap-loader' ], frameworks: ['jasmine'], webpack: webpackConfig, webpackServer: { noInfo: true }, files: [ './app/test.js' ], proxies: { '/assets': '/assets' }, preprocessors: { './app/test.js': ['webpack', 'sourcemap'] }, /* global global */ exclude: [ `${global.karmaBaseDirectory}/app/assets/**`, `${global.karmaBaseDirectory}/app/config/**` ], mochaReporter: { output: 'minimal' }, reporters: ['osx', 'clear-screen', 'mocha'], port: 9876, colors: true, logLevel: config.LOG_WARN, autoWatch: true, browsers: ['Chrome'], singleRun: false }); };