You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
416 B
18 lines
416 B
9 years ago
|
'use strict';
|
||
|
|
||
|
const getPreset = require('../../src/get-preset');
|
||
|
const Server = require('karma').Server;
|
||
|
|
||
|
module.exports = (args, done) => {
|
||
|
const config = getPreset(args.options.preset);
|
||
|
const karma = config.karma;
|
||
|
|
||
|
delete config.karma;
|
||
|
delete config.plugins;
|
||
|
karma.webpack = config;
|
||
|
karma.singleRun = !args.options.watch;
|
||
|
karma.autoWatch = args.options.watch;
|
||
|
|
||
|
new Server(karma, done).start();
|
||
|
};
|